Fix entities missing in imported leveldb worlds

This commit is contained in:
Dylan K. Taylor 2017-02-06 21:16:24 +00:00
parent f5e39ea9ad
commit ffadc34691

View File

@ -716,7 +716,8 @@ class Chunk{
continue; //Fixes entities allocated in wrong chunks. continue; //Fixes entities allocated in wrong chunks.
} }
if(($entity = Entity::createEntity($nbt["id"], $this, $nbt)) instanceof Entity){ //TODO: check bitflags
if(($entity = Entity::createEntity($nbt["id"] & 0xff, $this, $nbt)) instanceof Entity){
$entity->spawnToAll(); $entity->spawnToAll();
}else{ }else{
$changed = true; $changed = true;