I'm not sure how I am getting this error, I think i set it up wrong but don't know where.
Here is the error
Jul 04, 2018 11:12:02 AM xobot.IiIIiiIIIi ALLATORIxDEMO
INFO: Starting Script: SoulPlayMiner.
Jul 04, 2018 11:12:03 AM xobot.IIiiIIiIIi ALLATORIxDEMO
WARNING: Uncaught exception from task:
java.lang.ArrayIndexOutOfBoundsException: 2111
at xobot.script.methods.Packets.sendAction(xa:60)
at data.GemMine.mine(GemMine.java:24)
at SoulPlayMiner.loop(SoulPlayMiner.java:57)
at xobot.IIiiIIiIIi.ALLATORIxDEMO(u:35)
at xobot.IIiiIIiIIi.run(u:296)
at java.lang.Thread.run(Thread.java:748)
Here is the call
GameObject vein = GameObjects.getNearest(Data.GEM_ROCK);
if (vein != null) {
Packets.sendAction(502, vein.uid, vein.getX(), vein.getY(), vein.getId(), 2111);
}