From ddec3a1204d7740679ff4b618a24ffe3195611c1 Mon Sep 17 00:00:00 2001 From: Ben Maher Date: Sun, 6 Oct 2019 18:34:23 +0100 Subject: [PATCH] Issue 15 (#18) * Revised shop re-stocking interval. * Revised shop re-stocking interval. * Updated character save directory. * Renamed new player save directory from accounts to characters. * Added inverse for random toggle, since it's the first thing I type every time. * Added god capes. * Re-implemented experiments. * Yell now looks a little cleaner. * Fixed outside of bounds exception on High scores, when player count doesn't meet threshold. * Cleaned up Magic Teleports class and added level requirements. * Fixed exit portal from ancient chamber. * Added check to ensure axe id isn't outside the bounds of expected axes. * Added yet another check to ensure that the player has the required item before chopping a tree. NOTE this fix may not work as the issue is not reproducible locally. * Added yet another check to ensure that the player has the required item before chopping a tree. NOTE this fix may not work as the issue is not reproducible locally. --- .../src/redone/game/content/skills/core/Woodcutting.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/2006Redone Server/src/redone/game/content/skills/core/Woodcutting.java b/2006Redone Server/src/redone/game/content/skills/core/Woodcutting.java index 4269391c..1a4f57b2 100644 --- a/2006Redone Server/src/redone/game/content/skills/core/Woodcutting.java +++ b/2006Redone Server/src/redone/game/content/skills/core/Woodcutting.java @@ -246,6 +246,11 @@ public class Woodcutting { @Override public void execute(CycleEventContainer container) { + if (a <= -1) + { + container.stop(); + return; + } if (!player.isWoodcutting) { container.stop(); return;