summaryrefslogtreecommitdiffstats
path: root/nms-patches/AttributeRanged.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/AttributeRanged.patch')
-rw-r--r--nms-patches/AttributeRanged.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/AttributeRanged.patch b/nms-patches/AttributeRanged.patch
new file mode 100644
index 00000000..6c2e9bf2
--- /dev/null
+++ b/nms-patches/AttributeRanged.patch
@@ -0,0 +1,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;
+ }