Skip to content

Commit 13e933e

Browse files
committed
Remove custom EnumArgument class in favor of the provided version in forge config API port
1 parent 9ea762b commit 13e933e

File tree

6 files changed

+2
-136
lines changed

6 files changed

+2
-136
lines changed

src/main/java/com/hlysine/create_power_loader/CreatePowerLoader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.hlysine.create_power_loader;
22

3-
import com.hlysine.create_power_loader.command.EnumArgument;
43
import com.hlysine.create_power_loader.compat.Mods;
54
import com.hlysine.create_power_loader.config.CPLConfigs;
65
import com.hlysine.create_power_loader.content.ChunkLoadManager;
@@ -45,7 +44,6 @@ public void onInitialize() {
4544
PortingLibChunkManager.setForcedChunkLoadingCallback(MODID, ChunkLoadManager::validateAllForcedChunks);
4645

4746
CommonEvents.register();
48-
EnumArgument.register();
4947
}
5048

5149
public static CreateRegistrate getRegistrate() {

src/main/java/com/hlysine/create_power_loader/command/EnumArgument.java

Lines changed: 0 additions & 114 deletions
This file was deleted.

src/main/java/com/hlysine/create_power_loader/command/ListLoadersCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import net.minecraft.server.level.ServerLevel;
2828
import net.minecraft.world.level.dimension.DimensionType;
2929
import net.minecraft.world.phys.Vec3;
30+
import net.minecraftforge.server.command.EnumArgument;
3031
import org.jetbrains.annotations.Nullable;
3132

3233
import java.util.*;

src/main/java/com/hlysine/create_power_loader/mixin/ArgumentTypeInfosAccessor.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/main/resources/assets/create_power_loader/lang/en_us.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,5 @@
4747
"create_power_loader.ponder.brass_chunk_loader_station.text_2": "Place them next to Train Stations in the correct direction",
4848
"create_power_loader.ponder.brass_chunk_loader_station.text_3": "They do not require rotational power, but are normally inactive",
4949
"create_power_loader.ponder.brass_chunk_loader_station.text_4": "When a train arrives at the station, a 3x3 area around the chunk loader is loaded",
50-
"create_power_loader.ponder.brass_chunk_loader_station.text_5": "When the train leaves, the area is unloaded again",
51-
52-
"commands.forge.arguments.enum.invalid": "Enum constant must be one of {0}, found {1}"
50+
"create_power_loader.ponder.brass_chunk_loader_station.text_5": "When the train leaves, the area is unloaded again"
5351
}

src/main/resources/create_power_loader.mixins.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"refmap": "create_power_loader-refmap.json",
77
"plugin": "com.hlysine.create_power_loader.mixin.MixinPlugin",
88
"mixins": [
9-
"ArgumentTypeInfosAccessor",
109
"GlobalRailwayManagerMixin",
1110
"GlobalStationMixin",
1211
"TrackEdgePointMixin",

0 commit comments

Comments
 (0)