Skip to content

Commit

Permalink
Store FlightAssistant configs in a subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
Octol1ttle committed Mar 7, 2024
1 parent 8f60698 commit 557dd46
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class FAConfig {
private static final ConfigClassHandler<HUDConfig> HUD_HANDLER = ConfigClassHandler.createBuilder(HUDConfig.class)
.id(new Identifier(FlightAssistant.MODID, "hud"))
.serializer(config -> GsonConfigSerializerBuilder.create(config)
.setPath(YACLPlatform.getConfigDir().resolve("flightassistant_hud.json5"))
.setPath(YACLPlatform.getConfigDir().resolve("flightassistant/hud.json5"))
.appendGsonBuilder(GsonBuilder::setPrettyPrinting) // not needed, pretty print by default
.setJson5(true)
.build())
Expand All @@ -23,7 +23,7 @@ public class FAConfig {
private static final ConfigClassHandler<IndicatorConfigStorage> INDICATORS_STORAGE_HANDLER = ConfigClassHandler.createBuilder(IndicatorConfigStorage.class)
.id(new Identifier(FlightAssistant.MODID, "indicators"))
.serializer(config -> GsonConfigSerializerBuilder.create(config)
.setPath(YACLPlatform.getConfigDir().resolve("flightassistant_indicators.json5"))
.setPath(YACLPlatform.getConfigDir().resolve("flightassistant/indicators.json5"))
.appendGsonBuilder(GsonBuilder::setPrettyPrinting) // not needed, pretty print by default
.setJson5(true)
.build())
Expand All @@ -32,7 +32,7 @@ public class FAConfig {
private static final ConfigClassHandler<ComputerConfig> COMPUTER_HANDLER = ConfigClassHandler.createBuilder(ComputerConfig.class)
.id(new Identifier(FlightAssistant.MODID, "computers"))
.serializer(config -> GsonConfigSerializerBuilder.create(config)
.setPath(YACLPlatform.getConfigDir().resolve("flightassistant_computers.json5"))
.setPath(YACLPlatform.getConfigDir().resolve("flightassistant/computers.json5"))
.appendGsonBuilder(GsonBuilder::setPrettyPrinting) // not needed, pretty print by default
.setJson5(true)
.build())
Expand Down

0 comments on commit 557dd46

Please sign in to comment.