More var name fixes

This commit is contained in:
Nassim Jahnke
2024-12-27 13:45:04 +01:00
parent c530c39f4e
commit 2b73d1957c
29 changed files with 156 additions and 218 deletions

View File

@@ -291,13 +291,13 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
}
@Override
public void applyBiomeDecoration(WorldGenLevel world, ChunkAccess chunk, StructureManager structureAccessor) {
public void applyBiomeDecoration(WorldGenLevel level, ChunkAccess chunk, StructureManager structureManager) {
WorldgenRandom random = CustomChunkGenerator.getSeededRandom();
int x = chunk.getPos().x;
int z = chunk.getPos().z;
random.setSeed(Mth.getSeed(x, "should-decoration".hashCode(), z) ^ world.getSeed());
super.applyBiomeDecoration(world, chunk, structureAccessor, this.generator.shouldGenerateDecorations(this.world.getWorld(), new RandomSourceWrapper.RandomWrapper(random), x, z));
random.setSeed(Mth.getSeed(x, "should-decoration".hashCode(), z) ^ level.getSeed());
super.applyBiomeDecoration(level, chunk, structureManager, this.generator.shouldGenerateDecorations(this.world.getWorld(), new RandomSourceWrapper.RandomWrapper(random), x, z));
}
@Override

View File

@@ -613,8 +613,8 @@ public abstract class DelegatedGeneratorAccess implements WorldGenLevel {
}
@Override
public BlockHitResult clip(ClipContext raytrace1, BlockPos blockposition) {
return this.handle.clip(raytrace1, blockposition);
public BlockHitResult clip(ClipContext context, BlockPos traversePos) {
return this.handle.clip(context, traversePos);
}
@Override