summaryrefslogtreecommitdiffstats
path: root/nms-patches/AttributeRanged.patch
blob: 6c2e9bf23ec63c8ac9a90178e0b159098bf2af98 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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
+
         d0 = MathHelper.a(d0, this.a, this.b);
         return d0;
     }