Paper/nms-patches/AttributeRanged.patch

12 lines
307 B
Diff
Raw Normal View History

--- a/net/minecraft/server/AttributeRanged.java
+++ b/net/minecraft/server/AttributeRanged.java
2020-06-25 02:00:00 +02:00
@@ -20,6 +20,8 @@
2019-04-23 04:00:00 +02:00
@Override
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;
}