Skip to content

Commit 03f789b

Browse files
committed
Update RandomLib
1 parent 4273f3a commit 03f789b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repositories {
3939
dependencies {
4040
shadow "com.github.TheRandomLabs:RandomLib:1.12-SNAPSHOT"
4141
compile "com.github.TheRandomLabs:RandomLib:1.12-SNAPSHOT"
42-
deobfCompile "randompatches:randompatches:1.12.2:1.16.2.0"
42+
deobfCompile "randompatches:randompatches:1.12.2:1.17.1.0"
4343
deobfCompile "randomportals:randomportals:1.12.2:1.8.1.1"
4444
deobfCompile "applecore:AppleCore:1.12.2-3.2.0:api"
4545
}

src/main/java/com/therandomlabs/randomtweaks/common/command/CommandRegistry.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.therandomlabs.randomtweaks.config.RTConfig;
66
import net.minecraftforge.client.ClientCommandHandler;
77
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
8-
import net.minecraftforge.fml.relauncher.Side;
98

109
public final class CommandRegistry {
1110
public static void register(FMLServerStartingEvent event) {
@@ -26,16 +25,17 @@ public static void register(FMLServerStartingEvent event) {
2625
}
2726

2827
if(RTConfig.Commands.rtreload) {
29-
event.registerServerCommand(new CommandConfigReload(
30-
"rtreload", RTConfig.class, Side.SERVER, "RandomTweaks configuration reloaded!"
28+
event.registerServerCommand(CommandConfigReload.server(
29+
"rtreload", "rtreloadclient", RTConfig.class,
30+
"RandomTweaks configuration reloaded!"
3131
));
3232
}
3333
}
3434

3535
public static void registerClient() {
3636
if(RTConfig.Commands.rtreloadclient) {
37-
ClientCommandHandler.instance.registerCommand(new CommandConfigReload(
38-
"rtreloadclient", RTConfig.class, Side.CLIENT
37+
ClientCommandHandler.instance.registerCommand(CommandConfigReload.client(
38+
"rtreloadclient", RTConfig.class
3939
));
4040
}
4141

0 commit comments

Comments
 (0)