Fix log spam on outdated extension SettingsManager
This commit is contained in:
1 parent
ce69c7dfbe
commit
e9f1509a1d
1 file changed
+1
-1
@@ -224,7 +224,7 @@ public class CarpetServer // static for now - easier to handle all around the co
|
||||
private static final Set<CarpetExtension> warnedOutdatedManagerProviders = new HashSet<>();
|
||||
static void warnOutdatedManager(CarpetExtension ext)
|
||||
{
|
||||
if (!warnedOutdatedManagerProviders.contains(ext))
|
||||
if (warnedOutdatedManagerProviders.add(ext))
|
||||
CarpetSettings.LOG.warn("""
|
||||
%s is providing a SettingsManager from an outdated method in CarpetExtension!
|
||||
This behaviour will not work in later Carpet versions and the manager won't be registered!""".formatted(ext.getClass().getName()));
|
||||
|
||||
Reference in new issue
Block a user