Print a warning when an extension registers late (#1333)
This commit is contained in:
1 parent
cf32f637b8
commit
69574468d9
1 file changed
+2
@@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user