summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-17 21:12:23 +1000
committermd_5 <git@md-5.net>2018-07-17 21:12:23 +1000
commitb9f16157780e473ee5674acfab75474193d02610 (patch)
tree2165f66498e1f7e2ecbe54c3ec8c1ce7b7377c5e
parent57ab4cfc6f4ff526d44319d9b8c79f6848db2de7 (diff)
downloadcraftbukkit-b9f16157780e473ee5674acfab75474193d02610.tar
craftbukkit-b9f16157780e473ee5674acfab75474193d02610.tar.gz
craftbukkit-b9f16157780e473ee5674acfab75474193d02610.tar.lz
craftbukkit-b9f16157780e473ee5674acfab75474193d02610.tar.xz
craftbukkit-b9f16157780e473ee5674acfab75474193d02610.zip
SPIGOT-3998, MC-133373: Improve attributes
-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;
+ }