Fix server crash when woodcutting with pickaxe
This commit is contained in:
1 parent
d320d8efe3
commit
3af5acc0eb
10 files changed
+6
-1
No files matched your search
@@ -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
|
||||
Binary file not shown.
Binary file not shown.
@@ -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();
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in new issue
Block a user