From 914450c30b2b02db40a44df9454ae3ddeb81f8a6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 5 Feb 2020 20:40:34 +0000 Subject: [PATCH] Entity: remove useless assert() namedtag is always non-null here, and if it isn't, it should just catch fire the normal way. --- src/pocketmine/entity/Entity.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 0c511a9ad..cfb8be6b7 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -904,8 +904,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ } protected function initEntity() : void{ - assert($this->namedtag instanceof CompoundTag); - if($this->namedtag->hasTag("CustomName", StringTag::class)){ $this->setNameTag($this->namedtag->getString("CustomName"));