Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 12, 2024
1 parent 178dd6c commit 6f946fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private FlwCommands() {
public static void registerClientCommands(RegisterClientCommandsEvent event) {
LiteralArgumentBuilder<CommandSourceStack> command = Commands.literal("flywheel");

ConfigValue<String> backendValue = ForgeFlwConfig.INSTANCE.client.backend;
ConfigValue<String> backendValue = NeoForgeFlwConfig.INSTANCE.client.backend;
command.then(Commands.literal("backend")
.executes(context -> {
Backend backend = BackendManager.currentBackend();
Expand Down Expand Up @@ -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()) {
Expand Down Expand Up @@ -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 -> {
Expand All @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public String getVersionStr() {

@Override
public FlwConfig getConfig() {
return ForgeFlwConfig.INSTANCE;
return NeoForgeFlwConfig.INSTANCE;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClientConfig, ModConfigSpec> clientPair = new ModConfigSpec.Builder().configure(ClientConfig::new);
this.client = clientPair.getLeft();
clientSpec = clientPair.getRight();
Expand Down

0 comments on commit 6f946fc

Please sign in to comment.