3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00
Paper/nms-patches/BiomeStorage.patch

18 Zeilen
562 B
Diff

2019-12-10 23:00:00 +01:00
--- a/net/minecraft/server/BiomeStorage.java
+++ b/net/minecraft/server/BiomeStorage.java
2020-08-11 23:00:00 +02:00
@@ -87,4 +87,14 @@
2019-12-10 23:00:00 +01:00
2020-08-11 23:00:00 +02:00
return this.h[i1 << BiomeStorage.e + BiomeStorage.e | j1 << BiomeStorage.e | l];
2019-12-10 23:00:00 +01:00
}
+
+ // CraftBukkit start
+ public void setBiome(int i, int j, int k, BiomeBase biome) {
+ int l = i & BiomeStorage.b;
+ int i1 = MathHelper.clamp(j, 0, BiomeStorage.c);
+ int j1 = k & BiomeStorage.b;
+
2020-08-11 23:00:00 +02:00
+ this.h[i1 << BiomeStorage.e + BiomeStorage.e | j1 << BiomeStorage.e | l] = biome;
2019-12-10 23:00:00 +01:00
+ }
+ // CraftBukkit end
}