Updated to RC2

This commit is contained in:
Frank 2022-06-04 11:39:27 +02:00
parent e2b7f6849a
commit 9496de1438
3 changed files with 9 additions and 7 deletions

View file

@ -4,9 +4,9 @@ org.gradle.jvmargs=-Xmx2G
loom_version=0.12-SNAPSHOT loom_version=0.12-SNAPSHOT
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/versions.html # check these on https://fabricmc.net/versions.html
minecraft_version=1.19-pre3 minecraft_version=1.19-rc2
loader_version=0.14.6 loader_version=0.14.6
fabric_version=0.53.4+1.19 fabric_version=0.55.0+1.19
# Mod Properties # Mod Properties
mod_version=2.0.0 mod_version=2.0.0
maven_group=org.betterx.bclib maven_group=org.betterx.bclib

View file

@ -22,7 +22,7 @@ import net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData;
import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.chunk.ChunkAccess; import net.minecraft.world.level.chunk.ChunkAccess;
import net.minecraft.world.level.chunk.ChunkGenerator; import net.minecraft.world.level.chunk.ChunkGenerator;
import net.minecraft.world.level.chunk.PalettedContainer; import net.minecraft.world.level.chunk.PalettedContainerRO;
import net.minecraft.world.level.dimension.LevelStem; import net.minecraft.world.level.dimension.LevelStem;
import net.minecraft.world.level.levelgen.GenerationStep.Decoration; import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
import net.minecraft.world.level.levelgen.NoiseGeneratorSettings; import net.minecraft.world.level.levelgen.NoiseGeneratorSettings;
@ -915,8 +915,10 @@ public class BiomeAPI {
*/ */
public static void setBiome(ChunkAccess chunk, BlockPos pos, Holder<Biome> biome) { public static void setBiome(ChunkAccess chunk, BlockPos pos, Holder<Biome> biome) {
int sectionY = (pos.getY() - chunk.getMinBuildHeight()) >> 4; int sectionY = (pos.getY() - chunk.getMinBuildHeight()) >> 4;
PalettedContainer<Holder<Biome>> biomes = chunk.getSection(sectionY).getBiomes(); PalettedContainerRO<Holder<Biome>> biomes = chunk.getSection(sectionY).getBiomes();
biomes.set((pos.getX() & 15) >> 2, (pos.getY() & 15) >> 2, (pos.getZ() & 15) >> 2, biome); //TODO: 1.19 This will disable cave generation the end, Structure was made RO, so we have to find another way to handle this
//biomes.set((pos.getX() & 15) >> 2, (pos.getY() & 15) >> 2, (pos.getZ() & 15) >> 2, biome);
BCLib.LOGGER.warning("Unable to change Biome at " + pos);
} }
/** /**

View file

@ -38,8 +38,8 @@
], ],
"depends": { "depends": {
"fabricloader": ">=0.14.6", "fabricloader": ">=0.14.6",
"fabric": ">=0.53.4", "fabric": ">=0.55.0",
"minecraft": "1.19-beta.3" "minecraft": "1.19-rc2"
}, },
"custom": { "custom": {
"modmenu": { "modmenu": {