mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Fix being considered in water when not. Closes #10813
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user