mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
11 lines
293 B
Diff
11 lines
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;
|
|
}
|