Merge pull request #399 from UniquePassive/slayer-npe
Fix SlayerPlugin crashing the game
This commit is contained in:
@@ -283,7 +283,7 @@ public class SlayerPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
infoBoxManager.removeIf(t -> t instanceof TaskCounter);
|
infoBoxManager.removeIf(t -> t instanceof TaskCounter);
|
||||||
if (config.enabled() && config.showInfobox())
|
if (config.enabled() && config.showInfobox() && counter != null)
|
||||||
{
|
{
|
||||||
infoBoxManager.addInfoBox(counter);
|
infoBoxManager.addInfoBox(counter);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user