Fix ladder drops when supporting block is removed

This commit is contained in:
Dylan K. Taylor 2016-12-16 21:26:54 +00:00
parent aa8a13c4a3
commit 61e8828f94

View File

@ -131,7 +131,7 @@ class Ladder extends Transparent{
5 => 4 5 => 4
]; ];
if(!$this->getSide($sides[$this->meta])->isSolid()){ //Replace with common break method if(!$this->getSide($sides[$this->meta])->isSolid()){ //Replace with common break method
$this->level->setBlock($this, new Air(), true, true); $this->level->useBreakOn($this);
return Level::BLOCK_UPDATE_NORMAL; return Level::BLOCK_UPDATE_NORMAL;
} }
} }