Proper Fire ID checking. Fix #1756.

This commit is contained in:
williamtdr 2014-07-23 08:58:26 -05:00
parent c3424beda9
commit cd943f52a1

View File

@ -813,7 +813,7 @@ class Level implements ChunkManager, Metadatable{
if($level instanceof Level) {
$above = $level->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
if($above instanceof Block) {
if($above->getID() === new Fire()) {
if($above->getID() === new Fire()->getID()) {
$level->setBlock($above, new Air(), true, false, true);
}
}