Skip to content

Commit

Permalink
Fixed #167
Browse files Browse the repository at this point in the history
  • Loading branch information
hmy2001 committed May 16, 2020
1 parent a9983ad commit 3e64488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shoghicp/BigBrother/entity/ItemFrameBlockEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ public function spawnTo(DesktopPlayer $player){
$item = $tile->hasItem() ? $tile->getItem() : Item::get(Item::AIR, 0, 0);

if($item->getId() === Item::FILLED_MAP){
$mapId = (int)$item->getNamedTag()->getString("map_uuid");
if($mapId != null){
$mapId = $item->getNamedTag()->getLong("map_uuid");
if($mapId !== null){
// store $mapId as meta
$item->setDamage($mapId);

Expand Down

0 comments on commit 3e64488

Please sign in to comment.