mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Merge commit '2b58f2baf'
# Conflicts: # resources/vanilla # src/entity/object/FallingBlock.php
This commit is contained in:
commit
e7d712aeb6
@ -112,7 +112,7 @@ class FallingBlock extends Entity{
|
|||||||
$this->flagForDespawn();
|
$this->flagForDespawn();
|
||||||
|
|
||||||
$block = $world->getBlock($pos);
|
$block = $world->getBlock($pos);
|
||||||
if(($block->isTransparent() and !$block->canBeReplaced()) or !$world->isInWorld($pos->getFloorX(), $pos->getFloorY(), $pos->getFloorZ()) or ($this->onGround and abs($this->location->y - $this->location->getFloorY()) > 0.001)){
|
if(!$block->canBeReplaced() or !$world->isInWorld($pos->getFloorX(), $pos->getFloorY(), $pos->getFloorZ()) or ($this->onGround and abs($this->location->y - $this->location->getFloorY()) > 0.001)){
|
||||||
//FIXME: anvils are supposed to destroy torches
|
//FIXME: anvils are supposed to destroy torches
|
||||||
$world->dropItem($this->location, $this->block->asItem());
|
$world->dropItem($this->location, $this->block->asItem());
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user