Skip to content

Commit

Permalink
Small Adjustments with access modifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Dec 13, 2024
1 parent 1257c99 commit 8ba751e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public record BWGTradesConfig(boolean enableTrades, boolean enableVanillaTradeAd

private static final Codec<BWGTradesConfig> CODEC = RecordCodecBuilder.create(instance -> instance.group(
CommentedCodec.of(Codec.BOOL, "enable_trades", "Whether to enable BWG Villager Trades").orElse(true).forGetter(config -> true),
CommentedCodec.of(Codec.BOOL, "enable_vanilla_trade_additions", "Whether to add BWG Villager Trades to Vanilla Villagers").orElse(true).forGetter(config -> true)
CommentedCodec.of(Codec.BOOL, "enable_vanilla_trade_additions", "Whether to add BWG Items to Vanilla Villager Type Trades").orElse(true).forGetter(config -> true)
).apply(instance, BWGTradesConfig::new));

private static BWGTradesConfig createDefault() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private static BWGWorldGenConfig createDefault() {
enabledBiomes.put(biomeResourceKey, true);
}

enabledBiomes.put(BWGBiomes.ERODED_BOREALIS, false);
enabledBiomes.replace(BWGBiomes.ERODED_BOREALIS, false);
return enabledBiomes;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class BWGBiomes {
public static final ResourceKey<Biome> ZELKOVA_FOREST = createBiome("zelkova_forest", BWGOverworldBiomes::zelkovaForest, BWGBiomeTags.FOREST, BWGBiomeTags.DENSE);

@SafeVarargs
public static ResourceKey<Biome> createBiome(String id, BiomeFactory biomeFactory, TagKey<Biome>... tags) {
private static ResourceKey<Biome> createBiome(String id, BiomeFactory biomeFactory, TagKey<Biome>... tags) {
ResourceKey<Biome> biomeResourceKey = BiomesWeveGone.key(Registries.BIOME, id);
BIOME_FACTORIES.put(biomeResourceKey, biomeFactory);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class BWGFeatures {
public static final Supplier<ConfigurableFreezeTopLayer> CONFIGURABLE_FREEZE_TOP_LAYER = create("configurable_freeze_top_layer", () -> new ConfigurableFreezeTopLayer(ConfigurableFreezeTopLayer.Config.CODEC));


public static <C extends FeatureConfiguration, F extends Feature<C>> Supplier<F> create(String id, Supplier<F> supplier) {
private static <C extends FeatureConfiguration, F extends Feature<C>> Supplier<F> create(String id, Supplier<F> supplier) {
return PlatformHandler.PLATFORM_HANDLER.register(BuiltInRegistries.FEATURE, id, supplier);
}

Expand Down

0 comments on commit 8ba751e

Please sign in to comment.