diff --git a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwCommands.java b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwCommands.java index 567b50581..34f62102a 100644 --- a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwCommands.java +++ b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwCommands.java @@ -28,7 +28,7 @@ private FlwCommands() { public static void registerClientCommands(RegisterClientCommandsEvent event) { LiteralArgumentBuilder command = Commands.literal("flywheel"); - ConfigValue backendValue = ForgeFlwConfig.INSTANCE.client.backend; + ConfigValue backendValue = NeoForgeFlwConfig.INSTANCE.client.backend; command.then(Commands.literal("backend") .executes(context -> { Backend backend = BackendManager.currentBackend(); @@ -58,7 +58,7 @@ public static void registerClientCommands(RegisterClientCommandsEvent event) { return Command.SINGLE_SUCCESS; }))); - BooleanValue limitUpdatesValue = ForgeFlwConfig.INSTANCE.client.limitUpdates; + BooleanValue limitUpdatesValue = NeoForgeFlwConfig.INSTANCE.client.limitUpdates; command.then(Commands.literal("limitUpdates") .executes(context -> { if (limitUpdatesValue.get()) { @@ -123,7 +123,7 @@ public static void registerClientCommands(RegisterClientCommandsEvent event) { return Command.SINGLE_SUCCESS; }))); - var lightSmoothnessValue = ForgeFlwConfig.INSTANCE.client.backendConfig.lightSmoothness; + var lightSmoothnessValue = NeoForgeFlwConfig.INSTANCE.client.backendConfig.lightSmoothness; command.then(Commands.literal("lightSmoothness") .then(Commands.argument("mode", LightSmoothnessArgument.INSTANCE) .executes(context -> { @@ -137,7 +137,7 @@ public static void registerClientCommands(RegisterClientCommandsEvent event) { return Command.SINGLE_SUCCESS; }))); - var useLightDirectionsValue = ForgeFlwConfig.INSTANCE.client.backendConfig.useLightDirections; + var useLightDirectionsValue = NeoForgeFlwConfig.INSTANCE.client.backendConfig.useLightDirections; command.then(Commands.literal("useLightDirections") .executes(context -> { if (useLightDirectionsValue.get()) { diff --git a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java index 219cccaf8..ba80f96fe 100644 --- a/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java +++ b/forge/src/main/java/dev/engine_room/flywheel/impl/FlwImplXplatImpl.java @@ -20,7 +20,7 @@ public String getVersionStr() { @Override public FlwConfig getConfig() { - return ForgeFlwConfig.INSTANCE; + return NeoForgeFlwConfig.INSTANCE; } @Override diff --git a/forge/src/main/java/dev/engine_room/flywheel/impl/FlywheelNeoForge.java b/forge/src/main/java/dev/engine_room/flywheel/impl/FlywheelNeoForge.java index 4c0b69d44..162d528a0 100644 --- a/forge/src/main/java/dev/engine_room/flywheel/impl/FlywheelNeoForge.java +++ b/forge/src/main/java/dev/engine_room/flywheel/impl/FlywheelNeoForge.java @@ -43,7 +43,7 @@ public FlywheelNeoForge(IEventBus modEventBus, ModContainer modContainer) { IEventBus forgeEventBus = NeoForge.EVENT_BUS; - ForgeFlwConfig.INSTANCE.registerSpecs(modContainer); + NeoForgeFlwConfig.INSTANCE.registerSpecs(modContainer); registerImplEventListeners(forgeEventBus, modEventBus); registerLibEventListeners(forgeEventBus, modEventBus); diff --git a/forge/src/main/java/dev/engine_room/flywheel/impl/ForgeFlwConfig.java b/forge/src/main/java/dev/engine_room/flywheel/impl/NeoForgeFlwConfig.java similarity index 96% rename from forge/src/main/java/dev/engine_room/flywheel/impl/ForgeFlwConfig.java rename to forge/src/main/java/dev/engine_room/flywheel/impl/NeoForgeFlwConfig.java index 6d476005b..9cdc82aa0 100644 --- a/forge/src/main/java/dev/engine_room/flywheel/impl/ForgeFlwConfig.java +++ b/forge/src/main/java/dev/engine_room/flywheel/impl/NeoForgeFlwConfig.java @@ -13,13 +13,13 @@ import net.neoforged.fml.config.ModConfig; import net.neoforged.neoforge.common.ModConfigSpec; -public class ForgeFlwConfig implements FlwConfig { - public static final ForgeFlwConfig INSTANCE = new ForgeFlwConfig(); +public class NeoForgeFlwConfig implements FlwConfig { + public static final NeoForgeFlwConfig INSTANCE = new NeoForgeFlwConfig(); public final ClientConfig client; private final ModConfigSpec clientSpec; - private ForgeFlwConfig() { + private NeoForgeFlwConfig() { Pair clientPair = new ModConfigSpec.Builder().configure(ClientConfig::new); this.client = clientPair.getLeft(); clientSpec = clientPair.getRight();