2018-07-17 13:11:52 +02:00
|
|
|
--- a/net/minecraft/server/AttributeRanged.java
|
|
|
|
+++ b/net/minecraft/server/AttributeRanged.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -32,6 +32,8 @@
|
2018-07-17 13:11:52 +02:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2018-07-17 13:11:52 +02:00
|
|
|
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);
|
2018-07-17 13:11:52 +02:00
|
|
|
return d0;
|
|
|
|
}
|