Update to Minecraft 1.18-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-11-22 09:00:00 +11:00
parent a852b81a69
commit 43702a9e10
700 changed files with 10286 additions and 10098 deletions

View File

@@ -3,9 +3,9 @@
@@ -30,6 +30,8 @@
@Override
public double a(double d0) {
+ if (d0 != d0) return getDefault(); // CraftBukkit
public double sanitizeValue(double d0) {
+ if (d0 != d0) return getDefaultValue(); // CraftBukkit
+
d0 = MathHelper.a(d0, this.minValue, this.maxValue);
d0 = MathHelper.clamp(d0, this.minValue, this.maxValue);
return d0;
}

View File

@@ -5,11 +5,3 @@
package net.minecraft.world.entity.ai.attributes;
import net.minecraft.core.IRegistry;
@@ -21,6 +22,6 @@
public GenericAttributes() {}
private static AttributeBase a(String s, AttributeBase attributebase) {
- return (AttributeBase) IRegistry.a(IRegistry.ATTRIBUTE, s, (Object) attributebase);
+ return (AttributeBase) IRegistry.a(IRegistry.ATTRIBUTE, s, attributebase); // CraftBukkit - decompile error
}
}