Stop npe every game tick if you have defender timer turned off
This commit is contained in:
@@ -188,21 +188,20 @@ public class BAToolsPlugin extends Plugin implements KeyListener
|
|||||||
}
|
}
|
||||||
pastCall = callWidget.getTextColor();
|
pastCall = callWidget.getTextColor();
|
||||||
}
|
}
|
||||||
if (inGameBit == 1)
|
if (inGameBit == 1 && config.defTimer())
|
||||||
{
|
{
|
||||||
if (tickNum > 9)
|
if (tickNum > 9)
|
||||||
{
|
{
|
||||||
tickNum = 0;
|
tickNum = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counter == null)
|
if (counter == null)
|
||||||
{
|
{
|
||||||
addCounter();
|
addCounter();
|
||||||
}
|
}
|
||||||
counter.setCount(tickNum);
|
counter.setCount(tickNum);
|
||||||
if (config.defTimer())
|
|
||||||
{
|
tickNum++;
|
||||||
tickNum++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget weapon = client.getWidget(593, 1);
|
Widget weapon = client.getWidget(593, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user