diff --git a/src/ChestShop/Main.php b/src/ChestShop/Main.php index 89b6224..8c00307 100644 --- a/src/ChestShop/Main.php +++ b/src/ChestShop/Main.php @@ -106,7 +106,7 @@ public function sendChestShop(Player $player){ new IntTag('z', floor($player->z)) ]); /** @var Chest $tile */ - $tile = Tile::createTile('CustomChest', $player->chunk, $nbt); + $tile = Tile::createTile('CustomChest', $player->getLevel(), $nbt); $tile->namedtag->replace = new IntArrayTag("replace", [$tile->getBlock()->getId(), $tile->getBlock()->getDamage()]); $block = Block::get(Block::CHEST); $block->x = floor($tile->x);