Revert "Fix entities missing in imported leveldb worlds", fixed entities missing after restart in anything OTHER than LevelDB

🤦 I should test this stuff more

This reverts commit ffadc34691aa827a3640fd0908b9fce585d68bbe.
This commit is contained in:
Dylan K. Taylor 2017-02-11 19:22:59 +00:00
parent ffadc34691
commit 06de85fd33

View File

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