diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 8cf581819..f03666216 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -716,8 +716,7 @@ class Chunk{ continue; //Fixes entities allocated in wrong chunks. } - //TODO: check bitflags - if(($entity = Entity::createEntity($nbt["id"] & 0xff, $this, $nbt)) instanceof Entity){ + if(($entity = Entity::createEntity($nbt["id"], $this, $nbt)) instanceof Entity){ $entity->spawnToAll(); }else{ $changed = true;