mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 22:45:28 +00:00
fix crash on falling block above the height limit, closes #2803
This commit is contained in:
parent
d23eeff832
commit
720254f64f
@ -109,7 +109,7 @@ class FallingBlock extends Entity{
|
||||
$this->flagForDespawn();
|
||||
|
||||
$block = $this->world->getBlock($pos);
|
||||
if($block->isTransparent() and !$block->canBeReplaced()){
|
||||
if(($block->isTransparent() and !$block->canBeReplaced()) or !$this->world->isInWorld($pos->getFloorX(), $pos->getFloorY(), $pos->getFloorZ())){
|
||||
//FIXME: anvils are supposed to destroy torches
|
||||
$this->getWorld()->dropItem($this, $this->block->asItem());
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user