3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +01:00
Paper/nms-patches/AttributeRanged.patch

12 Zeilen
299 B
Diff

--- a/net/minecraft/server/AttributeRanged.java
+++ b/net/minecraft/server/AttributeRanged.java
@@ -31,6 +31,8 @@
}
public double a(double d0) {
+ if (d0 != d0) return getDefault(); // CraftBukkit
+
2018-07-22 04:00:00 +02:00
d0 = MathHelper.a(d0, this.a, this.maximum);
return d0;
}