changes in 1.16 require to re-register commands after datapack reload. May affect extensions with custom CMs - doubt there is any.
This commit is contained in:
1 parent
c94ba6a021
commit
d6845487ce
2 files changed
+7
-3
No files matched your search
@@ -80,6 +80,11 @@ public class CarpetServer // static for now - easier to handle all around the co
|
||||
|
||||
public static void registerCarpetCommands(CommandDispatcher<ServerCommandSource> dispatcher)
|
||||
{
|
||||
settingsManager.registerCommand(dispatcher);
|
||||
extensions.forEach(e -> {
|
||||
SettingsManager sm = e.customSettingsManager();
|
||||
if (sm != null) sm.registerCommand(dispatcher);
|
||||
});
|
||||
TickCommand.register(dispatcher);
|
||||
ProfileCommand.register(dispatcher);
|
||||
CounterCommand.register(dispatcher);
|
||||
@@ -100,6 +105,7 @@ public class CarpetServer // static for now - easier to handle all around the co
|
||||
|
||||
if (FabricLoader.getInstance().isDevelopmentEnvironment())
|
||||
TestCommand.register(dispatcher);
|
||||
// todo 1.16 - re-registerer apps if that's a reload operation.
|
||||
}
|
||||
|
||||
public static void onPlayerLoggedIn(ServerPlayerEntity player)
|
||||
|
||||
Reference in new issue
Block a user