mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
9d740b84b0
By: md_5 <git@md-5.net>
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
--- 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;
|