mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-06 18:34:59 +01:00
Only make source blocks valid for bottomless pools
This commit is contained in:
parent
e3331d363d
commit
a302178374
1 changed files with 8 additions and 1 deletions
|
@ -279,7 +279,14 @@ public class FluidDrainingBehaviour extends FluidManipulationBehaviour {
|
||||||
}
|
}
|
||||||
|
|
||||||
int maxBlocks = maxBlocks();
|
int maxBlocks = maxBlocks();
|
||||||
if (visited.size() > maxBlocks && canDrainInfinitely(fluid) && !queue.isEmpty()) {
|
int sourceBlocks = 0;
|
||||||
|
|
||||||
|
for (BlockPos pos : visited) {
|
||||||
|
if (getWorld().getFluidState(pos).isSource())
|
||||||
|
sourceBlocks++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sourceBlocks > maxBlocks && canDrainInfinitely(fluid) && !queue.isEmpty()) {
|
||||||
infinite = true;
|
infinite = true;
|
||||||
BlockPos firstValid = queue.first()
|
BlockPos firstValid = queue.first()
|
||||||
.pos();
|
.pos();
|
||||||
|
|
Loading…
Reference in a new issue