Liquid: restore mistakenly removed check

This commit is contained in:
Dylan K. Taylor 2021-09-19 15:42:17 +01:00
parent 18de35ffc7
commit 971cbe3929
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

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