Merge commit '2b58f2baf'

# Conflicts:
#	resources/vanilla
#	src/entity/object/FallingBlock.php
This commit is contained in:
Dylan K. Taylor 2020-06-03 12:47:44 +01:00
commit e7d712aeb6

View File

@ -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{