Add nullcheck for counter in SlayerPlugin#onConfigChanged
This commit is contained in:
@@ -283,7 +283,7 @@ public class SlayerPlugin extends Plugin
|
||||
}
|
||||
|
||||
infoBoxManager.removeIf(t -> t instanceof TaskCounter);
|
||||
if (config.enabled() && config.showInfobox())
|
||||
if (config.enabled() && config.showInfobox() && counter != null)
|
||||
{
|
||||
infoBoxManager.addInfoBox(counter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user