Entity: remove useless assert()

namedtag is always non-null here, and if it isn't, it should just catch fire the normal way.
This commit is contained in:
Dylan K. Taylor 2020-02-05 20:40:34 +00:00
parent 25554f0d61
commit 914450c30b

View File

@ -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"));