aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/chunk/ChunkSection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/chunk/ChunkSection.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/chunk/ChunkSection.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/chunk/ChunkSection.patch b/patch-remap/og/net/minecraft/world/level/chunk/ChunkSection.patch
new file mode 100644
index 0000000000..2978daa498
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/chunk/ChunkSection.patch
@@ -0,0 +1,29 @@
+--- a/net/minecraft/world/level/chunk/ChunkSection.java
++++ b/net/minecraft/world/level/chunk/ChunkSection.java
+@@ -23,9 +23,11 @@
+ private short tickingBlockCount;
+ private short tickingFluidCount;
+ private final DataPaletteBlock<IBlockData> states;
+- private PalettedContainerRO<Holder<BiomeBase>> biomes;
++ // CraftBukkit start - read/write
++ private DataPaletteBlock<Holder<BiomeBase>> biomes;
+
+- public ChunkSection(DataPaletteBlock<IBlockData> datapaletteblock, PalettedContainerRO<Holder<BiomeBase>> palettedcontainerro) {
++ public ChunkSection(DataPaletteBlock<IBlockData> datapaletteblock, DataPaletteBlock<Holder<BiomeBase>> palettedcontainerro) {
++ // CraftBukkit end
+ this.states = datapaletteblock;
+ this.biomes = palettedcontainerro;
+ this.recalcBlockCounts();
+@@ -188,6 +190,12 @@
+ return (Holder) this.biomes.get(i, j, k);
+ }
+
++ // CraftBukkit start
++ public void setBiome(int i, int j, int k, Holder<BiomeBase> biome) {
++ this.biomes.set(i, j, k, biome);
++ }
++ // CraftBukkit end
++
+ public void fillBiomesFromNoise(BiomeResolver biomeresolver, Climate.Sampler climate_sampler, int i, int j, int k) {
+ DataPaletteBlock<Holder<BiomeBase>> datapaletteblock = this.biomes.recreate();
+ boolean flag = true;