mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 14:19:53 +00:00
Level: fix crashdump #754691
This commit is contained in:
parent
0f33459632
commit
d92e79ba54
@ -28,6 +28,7 @@ namespace pocketmine\level;
|
|||||||
|
|
||||||
use pocketmine\block\Block;
|
use pocketmine\block\Block;
|
||||||
use pocketmine\block\BlockFactory;
|
use pocketmine\block\BlockFactory;
|
||||||
|
use pocketmine\block\UnknownBlock;
|
||||||
use pocketmine\entity\Entity;
|
use pocketmine\entity\Entity;
|
||||||
use pocketmine\entity\object\ExperienceOrb;
|
use pocketmine\entity\object\ExperienceOrb;
|
||||||
use pocketmine\entity\object\ItemEntity;
|
use pocketmine\entity\object\ItemEntity;
|
||||||
@ -1353,7 +1354,12 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$block = clone $this->blockStates[$fullState & 0xfff];
|
$block = $this->blockStates[$fullState & 0xfff];
|
||||||
|
if($block !== null){
|
||||||
|
$block = clone $block;
|
||||||
|
}else{
|
||||||
|
$block = new UnknownBlock($fullState >> 4, $fullState & 0xf);
|
||||||
|
}
|
||||||
|
|
||||||
$block->x = $x;
|
$block->x = $x;
|
||||||
$block->y = $y;
|
$block->y = $y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user