mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
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:
parent
ffadc34691
commit
06de85fd33
@ -716,8 +716,7 @@ class Chunk{
|
|||||||
continue; //Fixes entities allocated in wrong chunks.
|
continue; //Fixes entities allocated in wrong chunks.
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: check bitflags
|
if(($entity = Entity::createEntity($nbt["id"], $this, $nbt)) instanceof Entity){
|
||||||
if(($entity = Entity::createEntity($nbt["id"] & 0xff, $this, $nbt)) instanceof Entity){
|
|
||||||
$entity->spawnToAll();
|
$entity->spawnToAll();
|
||||||
}else{
|
}else{
|
||||||
$changed = true;
|
$changed = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user