mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
NBT updates and tile spawns fixed
This commit is contained in:
@ -2807,7 +2807,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
$t = $this->level->getTile($pos);
|
||||
if($t instanceof Sign){
|
||||
$nbt = new NBT(NBT::LITTLE_ENDIAN);
|
||||
$nbt->read($packet->namedtag);
|
||||
$nbt->read($packet->namedtag, false, true);
|
||||
$nbt = $nbt->getData();
|
||||
if($nbt["id"] !== Tile::SIGN){
|
||||
$t->spawnTo($this);
|
||||
|
Reference in New Issue
Block a user