Liquid: don't try to flow out of the world, close #2510

this fix is only required for master, although it could be backported.
This commit is contained in:
Dylan K. Taylor 2018-11-14 17:48:14 +00:00
parent 5d7feaaf21
commit 20dad95755

View File

@ -438,6 +438,6 @@ abstract class Liquid extends Transparent{
} }
protected function canFlowInto(Block $block) : bool{ protected function canFlowInto(Block $block) : bool{
return $block->canBeFlowedInto() and !($block instanceof Liquid and $block->isSource()); //TODO: I think this should only be liquids of the same type return $this->level->isInWorld($block->x, $block->y, $block->z) and $block->canBeFlowedInto() and !($block instanceof Liquid and $block->isSource()); //TODO: I think this should only be liquids of the same type
} }
} }