Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config option to enable/disable ore indicator generation #2767

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/generated/resources/assets/gtceu/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,7 @@
"config.gtceu.option.oreGenerationChunkCacheSize": "ǝzıSǝɥɔɐƆʞunɥƆuoıʇɐɹǝuǝ⅁ǝɹo",
"config.gtceu.option.oreIconSize": "ǝzıSuoɔIǝɹo",
"config.gtceu.option.oreIndicatorChunkCacheSize": "ǝzıSǝɥɔɐƆʞunɥƆɹoʇɐɔıpuIǝɹo",
"config.gtceu.option.oreIndicators": "sɹoʇɐɔıpuIǝɹo",
"config.gtceu.option.oreNamePrefix": "xıɟǝɹԀǝɯɐNǝɹo",
"config.gtceu.option.oreScaleStop": "doʇSǝןɐɔSǝɹo",
"config.gtceu.option.oreVeinGridSize": "ǝzıSpıɹ⅁uıǝΛǝɹo",
Expand Down
1 change: 1 addition & 0 deletions src/generated/resources/assets/gtceu/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,7 @@
"config.gtceu.option.oreGenerationChunkCacheSize": "oreGenerationChunkCacheSize",
"config.gtceu.option.oreIconSize": "oreIconSize",
"config.gtceu.option.oreIndicatorChunkCacheSize": "oreIndicatorChunkCacheSize",
"config.gtceu.option.oreIndicators": "oreIndicators",
"config.gtceu.option.oreNamePrefix": "oreNamePrefix",
"config.gtceu.option.oreScaleStop": "oreScaleStop",
"config.gtceu.option.oreVeinGridSize": "oreVeinGridSize",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ private Map<SectionPos, Map<BlockPos, OreBlockPlacer>> resolvePlacerLists(ChunkP
}

private void placeIndicators(ChunkAccess chunk, BulkSectionAccess access, GeneratedIndicators generatedVein) {
if (!ConfigHolder.INSTANCE.worldgen.oreVeins.oreIndicators) return;
generatedVein.consumeIndicators(chunk.getPos()).forEach(placer -> {
placer.placeIndicators(access);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ public static class OreVeinConfigs {
@Configurable.Comment({ "Make bedrock ore/fluid veins infinite?", "Default: false" })
public boolean infiniteBedrockOresFluids = false;
@Configurable
@Configurable.Comment({ "Generate ores indicators above ore veins", "Default: true" })
public boolean oreIndicators = true;
@Configurable
@Configurable.Comment({
"Sets the maximum number of chunks that may be cached for ore vein generation.",
"Higher values may improve world generation performance, but at the cost of more RAM usage.",
Expand Down
Loading