Add static keyword to registerCommands method

This commit is contained in:
Suel_ki
2023-07-18 10:27:18 +08:00
committed by GitHub
parent afdd6549d3
commit 29706d3e39

View File

@@ -11,7 +11,7 @@ import net.minecraftforge.fml.common.Mod;
@Mod.EventBusSubscriber(modid = "midnightlib", value = Dist.DEDICATED_SERVER)
public class MidnightLibServerEvents {
@SubscribeEvent
public void registerCommands(RegisterCommandsEvent event) {
public static void registerCommands(RegisterCommandsEvent event) {
for (LiteralArgumentBuilder<ServerCommandSource> command : AutoCommand.commands){
event.getDispatcher().register(command);
}