13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/AttributeRanged.patch
CraftBukkit/Spigot e73592b7b5 SPIGOT-3998, MC-133373: Improve attributes
By: md_5 <git@md-5.net>
2018-07-17 21:11:52 +10:00

12 Zeilen
293 B
Diff

--- 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;
}