mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-30 06:45:03 +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();
|
||||
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;
|
||||
BlockPos firstValid = queue.first()
|
||||
.pos();
|
||||
|
|
Loading…
Reference in a new issue