Skip to content

Commit

Permalink
Fixes a level-chunk error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Muqsit authored Mar 14, 2017
1 parent 1050546 commit 936a201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChestShop/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 936a201

Please sign in to comment.