mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 03:47:16 +00:00
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:
parent
25554f0d61
commit
914450c30b
@ -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"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user