fixed chests not appearing correctly after removing and placing them

This commit is contained in:
GameHerobrine 2024-07-11 04:39:13 +03:00
parent 36be0211f9
commit 2cd42fb605

View file

@ -47,7 +47,8 @@ class ChestBlock extends TransparentBlock{
"y" => $this->y,
"z" => $this->z
));
$server->api->tile->spawnToAll($tile);
if($chest instanceof Tile){
$chest->pairWith($tile);
$tile->pairWith($chest);