Merge pull request #399 from UniquePassive/slayer-npe

Fix SlayerPlugin crashing the game
This commit is contained in:
Adam
2018-01-20 08:41:37 -05:00
committed by GitHub

View File

@@ -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);
}