mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 16:02:19 +01:00
Merge branch 'mc1.18/dev' of https://github.com/Creators-of-Create/Create into mc1.18/dev
This commit is contained in:
commit
84f3ca0fae
1 changed files with 6 additions and 4 deletions
|
@ -74,7 +74,7 @@ public class FluidFillingBehaviour extends FluidManipulationBehaviour {
|
||||||
(p, d) -> infinityCheckFrontier.add(new BlockPosEntry(p, d)), true);
|
(p, d) -> infinityCheckFrontier.add(new BlockPosEntry(p, d)), true);
|
||||||
int maxBlocks = maxBlocks();
|
int maxBlocks = maxBlocks();
|
||||||
|
|
||||||
if (infinityCheckVisited.size() > maxBlocks && maxBlocks != -1) {
|
if (infinityCheckVisited.size() > maxBlocks && maxBlocks != -1 && !fillInfinite()) {
|
||||||
if (!infinite) {
|
if (!infinite) {
|
||||||
reset();
|
reset();
|
||||||
infinite = true;
|
infinite = true;
|
||||||
|
@ -165,9 +165,11 @@ public class FluidFillingBehaviour extends FluidManipulationBehaviour {
|
||||||
|
|
||||||
if (visited.size() >= maxBlocks && maxBlocks != -1) {
|
if (visited.size() >= maxBlocks && maxBlocks != -1) {
|
||||||
infinite = true;
|
infinite = true;
|
||||||
visited.clear();
|
if (!fillInfinite()) {
|
||||||
queue.clear();
|
visited.clear();
|
||||||
return false;
|
queue.clear();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SpaceType spaceType = getAtPos(world, currentPos, fluid);
|
SpaceType spaceType = getAtPos(world, currentPos, fluid);
|
||||||
|
|
Loading…
Reference in a new issue