Fix being considered in water when not. Closes #10813

This commit is contained in:
LexManos committed 2026-04-23 14:36:51 -07:00
1 parent 478d8b3f18
commit 3bbdbacb81
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ plugins {
id 'net.minecraftforge.gradle.patcher' version '[6.0.51,6.2)' apply false
id 'net.minecraftforge.gradle.mcp' version '[6.0.51,6.2)' apply false
id 'net.minecraftforge.gradlejarsigner' version '1.0.4'
id 'org.barfuin.gradle.taskinfo' version '3.0.1'
//id 'org.barfuin.gradle.taskinfo' version '3.0.1'
}
Util.init() //Init all our extension methods!
@@ -166,7 +166,7 @@
+ public final boolean isInFluid(java.util.function.BiPredicate<net.minecraftforge.fluids.FluidType, Double> predicate, boolean forAllTypes) {
+ boolean match = false;
+ for (var entry : this.trackerByFluidType.entrySet()) {
+ if (predicate.test(entry.getKey(), entry.getValue().height)) {
+ if (entry.getValue().height > 0 && predicate.test(entry.getKey(), entry.getValue().height)) {
+ match = true;
+ if (!forAllTypes)
+ return true;