Stop npe every game tick if you have defender timer turned off

This commit is contained in:
Lucas
2019-05-19 23:43:13 +02:00
parent a545cd1ac0
commit 646dac7b71

View File

@@ -188,21 +188,20 @@ public class BAToolsPlugin extends Plugin implements KeyListener
}
pastCall = callWidget.getTextColor();
}
if (inGameBit == 1)
if (inGameBit == 1 && config.defTimer())
{
if (tickNum > 9)
{
tickNum = 0;
}
if (counter == null)
{
addCounter();
}
counter.setCount(tickNum);
if (config.defTimer())
{
tickNum++;
}
tickNum++;
}
Widget weapon = client.getWidget(593, 1);