mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Fix decompile errors in mc-dev imports patch
This commit is contained in:
@@ -99,7 +99,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return Objects.toStringHelper(this).add("x", this.getX()).add("y", this.getY()).add("z", this.getZ()).toString();
|
||||
+ }
|
||||
+
|
||||
+ public int compareTo(Object object) {
|
||||
+ public int compareTo(BaseBlockPosition object) { // Paper - correct decompile error
|
||||
+ return this.i((BaseBlockPosition) object);
|
||||
+ }
|
||||
+}
|
||||
@@ -158,7 +158,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ protected List<BiomeBase.BiomeMeta> x;
|
||||
+
|
||||
+ public static int a(BiomeBase biomebase) {
|
||||
+ return BiomeBase.REGISTRY_ID.a((Object) biomebase);
|
||||
+ return BiomeBase.REGISTRY_ID.a(biomebase); // Paper - Fix compile
|
||||
+ }
|
||||
+
|
||||
+ public static BiomeBase a(int i) {
|
||||
@@ -4557,6 +4557,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return Collections.emptyList();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // Paper start - Fix decompiler error
|
||||
+ @Override
|
||||
+ public int compareTo(ICommand o) {
|
||||
+ return a((ICommand) o);
|
||||
+ }
|
||||
+ // Paper end
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/EULA.java b/src/main/java/net/minecraft/server/EULA.java
|
||||
new file mode 100644
|
||||
@@ -5074,7 +5081,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+
|
||||
+ public void a(PacketListenerPlayOut packetlistenerplayout) {
|
||||
+ packetlistenerplayout.a(this);
|
||||
+ packetlistenerplayout.a((IChatBaseComponent) this); // Paper - Fix decompile error
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutTitle.java b/src/main/java/net/minecraft/server/PacketPlayOutTitle.java
|
||||
@@ -5142,7 +5149,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+
|
||||
+ public void a(PacketListenerPlayOut packetlistenerplayout) {
|
||||
+ packetlistenerplayout.a(this);
|
||||
+ packetlistenerplayout.a((IChatBaseComponent) this); // Paper - Fix decompile error
|
||||
+ }
|
||||
+
|
||||
+ public static enum EnumTitleAction {
|
||||
|
Reference in New Issue
Block a user