Fix server crash when woodcutting with pickaxe

This commit is contained in:
dginovker
2019-10-04 13:08:57 -04:00
parent d320d8efe3
commit 3af5acc0eb
10 changed files with 6 additions and 1 deletions
@@ -1 +1,2 @@
[2019/10/04] 10:46 irdb sold thread to store id: 24 for 2 coins
[2019/10/04] 10:47 irdb sold bronze dagger to store id: 88 for 8 coins
@@ -70,7 +70,11 @@ public class Woodcutting {
@Override
public void execute(CycleEventContainer container) {
if (player.isWoodcutting) {
player.startAnimation(Axe_Settings[a][3]);
try {
player.startAnimation(Axe_Settings[a][3]);
} catch (ArrayIndexOutOfBoundsException exception) {
System.out.println("LOL this happend again: " + exception);
}
player.getActionSender().sendSound(SoundList.TREE_CUTTING, 100, 0);
} else {
container.stop();