mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Address several LevelDB related crashdumps in the crash archive
This commit is contained in:
@ -514,8 +514,9 @@ class LevelDB extends BaseLevelProvider{
|
||||
private function writeTags(array $targets, string $index){
|
||||
$nbt = new NBT(NBT::LITTLE_ENDIAN);
|
||||
$out = [];
|
||||
/** @var Entity|Tile $target */
|
||||
foreach($targets as $target){
|
||||
if(!$target->closed){
|
||||
if(!$target->isClosed()){
|
||||
$target->saveNBT();
|
||||
$out[] = $target->namedtag;
|
||||
}
|
||||
|
Reference in New Issue
Block a user