Skip to content

Commit

Permalink
Use more 'proper' method of getting biome when using default carvers.
Browse files Browse the repository at this point in the history
Update mixin maven repo.
  • Loading branch information
Nicholas Young committed Mar 20, 2021
1 parent 3ce876d commit d6846af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
repositories {
maven { url = "http://files.minecraftforge.net/maven" }
maven { url='https://dist.creeper.host/Sponge/maven' }
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
jcenter()
mavenCentral()
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.jvmargs = -Xmx3G
# No daemon
org.gradle.daemon = false

modVersion = 1.1.1
modVersion = 1.1.2-beta
modId = bettercaves
modGroup = com.yungnickyoung.minecraft.bettercaves
modFileName = BetterCaves-Forge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected boolean func_222708_a(double p_222708_1_, double p_222708_3_, double p

private boolean useDefaultCarvers(ServerWorld world, IChunk chunkIn, Function<BlockPos, Biome> biomePos, Random rand, int seaLevel, int chunkXOffset, int chunkZOffset, int chunkX, int chunkZ, BitSet airCarvingMask, BitSet liquidCarvingMask) {
// Grab the carvers we saved earlier for this biome
String biomeName = world.getNoiseBiome(chunkIn.getPos().x << 2, 0, chunkIn.getPos().z << 2).getRegistryName().toString();
String biomeName = biomePos.apply(new BlockPos(chunkIn.getPos().x << 4, 0, chunkIn.getPos().z << 4)).getRegistryName().toString();
List<Supplier<ConfiguredCarver<?>>> defaultAirCarvers = BetterCaves.defaultBiomeAirCarvers.get(biomeName);
List<Supplier<ConfiguredCarver<?>>> defaultLiquidCarvers = BetterCaves.defaultBiomeLiquidCarvers.get(biomeName);

Expand Down

0 comments on commit d6846af

Please sign in to comment.