2018-07-17 21:11:52 +10:00
|
|
|
--- 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 12:00:00 +10:00
|
|
|
d0 = MathHelper.a(d0, this.a, this.maximum);
|
2018-07-17 21:11:52 +10:00
|
|
|
return d0;
|
|
|
|
}
|