geforkt von Mirrors/Paper
12 Zeilen
307 B
Diff
12 Zeilen
307 B
Diff
--- a/net/minecraft/server/AttributeRanged.java
|
|
+++ b/net/minecraft/server/AttributeRanged.java
|
|
@@ -20,6 +20,8 @@
|
|
|
|
@Override
|
|
public double a(double d0) {
|
|
+ if (d0 != d0) return getDefault(); // CraftBukkit
|
|
+
|
|
d0 = MathHelper.a(d0, this.a, this.maximum);
|
|
return d0;
|
|
}
|