From b9f16157780e473ee5674acfab75474193d02610 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 17 Jul 2018 21:12:23 +1000 Subject: SPIGOT-3998, MC-133373: Improve attributes --- nms-patches/AttributeRanged.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nms-patches/AttributeRanged.patch 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; + } -- cgit v1.2.3