From c05f2c21b1f17de1a9a7fca98947a76aff7ecdf9 Mon Sep 17 00:00:00 2001 From: Rodgerwilco Date: Tue, 1 May 2012 17:38:26 -0700 Subject: [PATCH] #123 - Flax test - Checking if the player is busy? --- .../moparscape/msc/gs/phandler/client/InvUseOnObject.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameServer/src/org/moparscape/msc/gs/phandler/client/InvUseOnObject.java b/GameServer/src/org/moparscape/msc/gs/phandler/client/InvUseOnObject.java index 08a705e..1132ace 100644 --- a/GameServer/src/org/moparscape/msc/gs/phandler/client/InvUseOnObject.java +++ b/GameServer/src/org/moparscape/msc/gs/phandler/client/InvUseOnObject.java @@ -1178,8 +1178,8 @@ public class InvUseOnObject implements PacketHandler { private void handleFlaxSpinning(int times) { final int retries = --times; if (!Server.isMembers()) { - owner.getActionSender().sendMessage( - GameServer.P2P_LIMIT_MESSAGE); + owner.getActionSender().sendMessage(GameServer.P2P_LIMIT_MESSAGE); + owner.setBusy(false); return; } if (owner.getCurStat(12) < 10) { @@ -1192,7 +1192,7 @@ public class InvUseOnObject implements PacketHandler { "You make the flax into a bow string"); Instance.getDelayedEventHandler().add( new MiniEvent(owner) { - public void action() { + public void action() { if (owner.getInventory().remove(item) > -1) { owner.getInventory().add( new InvItem(676, 1));