mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 13:28:00 +01:00
Update FluidFillingBehaviour.java
now properly fills infinitely
This commit is contained in:
parent
343c0fab62
commit
f8ef7be48d
1 changed files with 6 additions and 4 deletions
|
@ -72,7 +72,7 @@ public class FluidFillingBehaviour extends FluidManipulationBehaviour {
|
|||
(p, d) -> infinityCheckFrontier.add(new BlockPosEntry(p, d)), true);
|
||||
int maxBlocks = maxBlocks();
|
||||
|
||||
if (infinityCheckVisited.size() > maxBlocks && maxBlocks != -1) {
|
||||
if (infinityCheckVisited.size() > maxBlocks && maxBlocks != -1 && !fillInfinite()) {
|
||||
if (!infinite) {
|
||||
reset();
|
||||
infinite = true;
|
||||
|
@ -163,9 +163,11 @@ public class FluidFillingBehaviour extends FluidManipulationBehaviour {
|
|||
|
||||
if (visited.size() >= maxBlocks && maxBlocks != -1) {
|
||||
infinite = true;
|
||||
visited.clear();
|
||||
queue.clear();
|
||||
return false;
|
||||
if (!fillInfinite()) {
|
||||
visited.clear();
|
||||
queue.clear();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
SpaceType spaceType = getAtPos(world, currentPos, fluid);
|
||||
|
|
Loading…
Reference in a new issue