mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-3998, MC-133373: Improve attributes
By: md_5 <git@md-5.net>
This commit is contained in:
parent
be907fd21b
commit
e73592b7b5
1 changed files with 11 additions and 0 deletions
11
paper-server/nms-patches/AttributeRanged.patch
Normal file
11
paper-server/nms-patches/AttributeRanged.patch
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue