mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-16 17:25:09 +01:00
Add static keyword to registerCommands method
This commit is contained in:
@@ -11,7 +11,7 @@ import net.minecraftforge.fml.common.Mod;
|
|||||||
@Mod.EventBusSubscriber(modid = "midnightlib", value = Dist.DEDICATED_SERVER)
|
@Mod.EventBusSubscriber(modid = "midnightlib", value = Dist.DEDICATED_SERVER)
|
||||||
public class MidnightLibServerEvents {
|
public class MidnightLibServerEvents {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void registerCommands(RegisterCommandsEvent event) {
|
public static void registerCommands(RegisterCommandsEvent event) {
|
||||||
for (LiteralArgumentBuilder<ServerCommandSource> command : AutoCommand.commands){
|
for (LiteralArgumentBuilder<ServerCommandSource> command : AutoCommand.commands){
|
||||||
event.getDispatcher().register(command);
|
event.getDispatcher().register(command);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user