Update to Minecraft 1.15.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-01-22 08:00:00 +11:00
parent 09a2fa4d96
commit 77b64e0c78
50 changed files with 293 additions and 421 deletions

View File

@@ -1,15 +1,15 @@
--- a/net/minecraft/server/GameRules.java
+++ b/net/minecraft/server/GameRules.java
@@ -92,7 +92,7 @@
@@ -94,7 +94,7 @@
}
public <T extends GameRules.GameRuleValue<T>> T get(GameRules.GameRuleKey<T> gamerules_gamerulekey) {
- return (GameRules.GameRuleValue) this.F.get(gamerules_gamerulekey);
+ return (T) this.F.get(gamerules_gamerulekey); // CraftBukkit - decompile error
- return (GameRules.GameRuleValue) this.H.get(gamerules_gamerulekey);
+ return (T) this.H.get(gamerules_gamerulekey); // CraftBukkit - decompile error
}
public NBTTagCompound a() {
@@ -120,7 +120,7 @@
@@ -122,7 +122,7 @@
}
private static <T extends GameRules.GameRuleValue<T>> void a(GameRules.GameRuleVisitor gamerules_gamerulevisitor, GameRules.GameRuleKey<?> gamerules_gamerulekey, GameRules.GameRuleDefinition<?> gamerules_gameruledefinition) {
@@ -18,7 +18,7 @@
}
public boolean getBoolean(GameRules.GameRuleKey<GameRules.GameRuleBoolean> gamerules_gamerulekey) {
@@ -171,7 +171,7 @@
@@ -173,7 +173,7 @@
}
@Override
@@ -27,7 +27,7 @@
this.a = Boolean.parseBoolean(s);
}
@@ -221,7 +221,7 @@
@@ -223,7 +223,7 @@
}
@Override
@@ -36,7 +36,7 @@
this.a = b(s);
}
@@ -270,7 +270,7 @@
@@ -272,7 +272,7 @@
}
@@ -45,7 +45,7 @@
protected abstract String getValue();
@@ -300,7 +300,7 @@
@@ -302,7 +302,7 @@
}
public T getValue() {