mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Chunk: fix tiles not being loaded from NBT in some cases
This commit is contained in:
parent
211836274f
commit
c8eefddfc0
@ -598,8 +598,11 @@ class Chunk{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$world->timings->syncChunkLoadEntitiesTimer->stopTiming();
|
|
||||||
|
|
||||||
|
$this->NBTentities = null;
|
||||||
|
$world->timings->syncChunkLoadEntitiesTimer->stopTiming();
|
||||||
|
}
|
||||||
|
if($this->NBTtiles !== null){
|
||||||
$world->timings->syncChunkLoadTileEntitiesTimer->startTiming();
|
$world->timings->syncChunkLoadTileEntitiesTimer->startTiming();
|
||||||
foreach($this->NBTtiles as $nbt){
|
foreach($this->NBTtiles as $nbt){
|
||||||
if($nbt instanceof CompoundTag){
|
if($nbt instanceof CompoundTag){
|
||||||
@ -613,10 +616,8 @@ class Chunk{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$world->timings->syncChunkLoadTileEntitiesTimer->stopTiming();
|
|
||||||
|
|
||||||
$this->NBTentities = null;
|
|
||||||
$this->NBTtiles = null;
|
$this->NBTtiles = null;
|
||||||
|
$world->timings->syncChunkLoadTileEntitiesTimer->stopTiming();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->hasChanged = $changed;
|
$this->hasChanged = $changed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user