mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 14:23:48 -07:00
Update to Minecraft 1.16.2
This commit is contained in:
@@ -1,26 +1,8 @@
|
||||
--- a/net/minecraft/server/BiomeStorage.java
|
||||
+++ b/net/minecraft/server/BiomeStorage.java
|
||||
@@ -88,7 +88,7 @@
|
||||
int[] aint = new int[this.g.length];
|
||||
@@ -87,4 +87,14 @@
|
||||
|
||||
for (int i = 0; i < this.g.length; ++i) {
|
||||
- aint[i] = IRegistry.BIOME.a((Object) this.g[i]);
|
||||
+ aint[i] = IRegistry.BIOME.a(this.g[i]); // CraftBukkit - decompile error
|
||||
}
|
||||
|
||||
return aint;
|
||||
@@ -101,7 +101,7 @@
|
||||
for (int j = 0; j < i; ++j) {
|
||||
BiomeBase biomebase = abiomebase[j];
|
||||
|
||||
- packetdataserializer.writeInt(IRegistry.BIOME.a((Object) biomebase));
|
||||
+ packetdataserializer.writeInt(IRegistry.BIOME.a(biomebase)); // CraftBukkit - decompile error
|
||||
}
|
||||
|
||||
}
|
||||
@@ -118,4 +118,14 @@
|
||||
|
||||
return this.g[i1 << BiomeStorage.e + BiomeStorage.e | j1 << BiomeStorage.e | l];
|
||||
return this.h[i1 << BiomeStorage.e + BiomeStorage.e | j1 << BiomeStorage.e | l];
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
@@ -29,7 +11,7 @@
|
||||
+ int i1 = MathHelper.clamp(j, 0, BiomeStorage.c);
|
||||
+ int j1 = k & BiomeStorage.b;
|
||||
+
|
||||
+ this.g[i1 << BiomeStorage.e + BiomeStorage.e | j1 << BiomeStorage.e | l] = biome;
|
||||
+ this.h[i1 << BiomeStorage.e + BiomeStorage.e | j1 << BiomeStorage.e | l] = biome;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
Reference in New Issue
Block a user