mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Fix some issues with entities in leveldb worlds
This commit is contained in:
@ -403,6 +403,12 @@ class LevelDB extends BaseLevelProvider{
|
||||
}
|
||||
}
|
||||
|
||||
foreach($entities as $entityNBT){
|
||||
if($entityNBT->id instanceof IntTag){
|
||||
$entityNBT["id"] &= 0xff;
|
||||
}
|
||||
}
|
||||
|
||||
$tiles = [];
|
||||
if(($tileData = $this->db->get($index . self::TAG_BLOCK_ENTITY)) !== false and strlen($tileData) > 0){
|
||||
$nbt->read($tileData, true);
|
||||
|
Reference in New Issue
Block a user