mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 03:16:35 +00:00
Fix entities missing in imported leveldb worlds
This commit is contained in:
parent
f5e39ea9ad
commit
ffadc34691
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user