From 2cd42fb60504c9161ae21828a39629102a4fe1b4 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 11 Jul 2024 04:39:13 +0300 Subject: [PATCH] fixed chests not appearing correctly after removing and placing them --- src/material/block/nonfull/ChestBlock.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/material/block/nonfull/ChestBlock.php b/src/material/block/nonfull/ChestBlock.php index f7cfb1bb..344daff4 100644 --- a/src/material/block/nonfull/ChestBlock.php +++ b/src/material/block/nonfull/ChestBlock.php @@ -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);