mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Liquid: restore mistakenly removed check
This commit is contained in:
parent
18de35ffc7
commit
971cbe3929
@ -372,6 +372,7 @@ abstract class Liquid extends Transparent{
|
|||||||
|
|
||||||
protected function canFlowInto(Block $block) : bool{
|
protected function canFlowInto(Block $block) : bool{
|
||||||
return
|
return
|
||||||
|
$this->position->getWorld()->isInWorld($block->position->x, $block->position->y, $block->position->z) and
|
||||||
$block->canBeFlowedInto() and
|
$block->canBeFlowedInto() and
|
||||||
!($block instanceof Liquid and $block->isSource()); //TODO: I think this should only be liquids of the same type
|
!($block instanceof Liquid and $block->isSource()); //TODO: I think this should only be liquids of the same type
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user