Use correct registration hook. Closes #1
1 files changed, 2 insertions(+), 2 deletions(-) M src/main/java/com/williewillus/sss/SimpleServerSorter.java
M src/main/java/com/williewillus/sss/SimpleServerSorter.java => src/main/java/com/williewillus/sss/SimpleServerSorter.java +2 -2
@@ 1,11 1,11 @@ package com.williewillus.sss; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.event.server.ServerStartCallback; import net.fabricmc.fabric.api.registry.CommandRegistry; public class SimpleServerSorter implements ModInitializer { @Override public void onInitialize() { ServerStartCallback.EVENT.register(srv -> SortCommand.register(srv.getCommandManager().getDispatcher())); CommandRegistry.INSTANCE.register(false, SortCommand::register); } }