From 919534d978f16d1b099bbd74c0a87743cb2341da Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 12 Dec 2019 16:28:30 +0000 Subject: [PATCH] EnderChest: fixed crash when plugins overwrite tile classes with incompatible ones relates to 47a959dace95eafe79212a444e3f865475c6ee8e --- src/pocketmine/block/EnderChest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pocketmine/block/EnderChest.php b/src/pocketmine/block/EnderChest.php index ea5afb2577..1f1f5e6ddd 100644 --- a/src/pocketmine/block/EnderChest.php +++ b/src/pocketmine/block/EnderChest.php @@ -84,6 +84,9 @@ class EnderChest extends Chest{ $enderChest = $t; }else{ $enderChest = Tile::createTile(Tile::ENDER_CHEST, $this->getLevel(), TileEnderChest::createNBT($this)); + if(!($enderChest instanceof TileEnderChest)){ + return true; + } } if(!$this->getSide(Vector3::SIDE_UP)->isTransparent()){