From 8ba751ed3b6dc346df373a8af4ff6fc7b89bb3e3 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Thu, 12 Dec 2024 22:41:43 -0500 Subject: [PATCH] Small Adjustments with access modifiers Signed-off-by: Joseph T. McQuigg --- .../biomeswevegone/config/configs/BWGTradesConfig.java | 2 +- .../biomeswevegone/config/configs/BWGWorldGenConfig.java | 2 +- .../biomeswevegone/world/level/levelgen/biome/BWGBiomes.java | 2 +- .../world/level/levelgen/feature/BWGFeatures.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGTradesConfig.java b/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGTradesConfig.java index 9273bdb84..f28ea97ea 100644 --- a/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGTradesConfig.java +++ b/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGTradesConfig.java @@ -20,7 +20,7 @@ public record BWGTradesConfig(boolean enableTrades, boolean enableVanillaTradeAd private static final Codec 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() { diff --git a/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGWorldGenConfig.java b/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGWorldGenConfig.java index 8890a9221..f55885e2f 100644 --- a/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGWorldGenConfig.java +++ b/Common/src/main/java/net/potionstudios/biomeswevegone/config/configs/BWGWorldGenConfig.java @@ -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; } diff --git a/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/biome/BWGBiomes.java b/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/biome/BWGBiomes.java index 4016bde14..e555b12e5 100644 --- a/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/biome/BWGBiomes.java +++ b/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/biome/BWGBiomes.java @@ -84,7 +84,7 @@ public class BWGBiomes { public static final ResourceKey ZELKOVA_FOREST = createBiome("zelkova_forest", BWGOverworldBiomes::zelkovaForest, BWGBiomeTags.FOREST, BWGBiomeTags.DENSE); @SafeVarargs - public static ResourceKey createBiome(String id, BiomeFactory biomeFactory, TagKey... tags) { + private static ResourceKey createBiome(String id, BiomeFactory biomeFactory, TagKey... tags) { ResourceKey biomeResourceKey = BiomesWeveGone.key(Registries.BIOME, id); BIOME_FACTORIES.put(biomeResourceKey, biomeFactory); diff --git a/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/feature/BWGFeatures.java b/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/feature/BWGFeatures.java index 817d95945..8fdeee699 100644 --- a/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/feature/BWGFeatures.java +++ b/Common/src/main/java/net/potionstudios/biomeswevegone/world/level/levelgen/feature/BWGFeatures.java @@ -26,7 +26,7 @@ public class BWGFeatures { public static final Supplier CONFIGURABLE_FREEZE_TOP_LAYER = create("configurable_freeze_top_layer", () -> new ConfigurableFreezeTopLayer(ConfigurableFreezeTopLayer.Config.CODEC)); - public static > Supplier create(String id, Supplier supplier) { + private static > Supplier create(String id, Supplier supplier) { return PlatformHandler.PLATFORM_HANDLER.register(BuiltInRegistries.FEATURE, id, supplier); }