Print a warning when an extension registers late (#1333)

This commit is contained in:
altrisi authored and GitHub committed 2022-02-20 19:24:51 +01:00
1 parent cf32f637b8
commit 69574468d9
1 file changed
+2
+2
View File
@@ -66,6 +66,8 @@ public class CarpetServer // static for now - easier to handle all around the co
if (currentCommandDispatcher != null)
{
extension.registerCommands(currentCommandDispatcher);
CarpetSettings.LOG.warn(extension.getClass().getSimpleName() + " extension registered too late!");
CarpetSettings.LOG.warn("This won't be supported in later Carpet versions and may crash the game!");
}
}