#123 - Flax test - Checking if the player is busy?

This commit is contained in:
Rodgerwilco 2012-05-01 17:38:26 -07:00
parent 99aaaedc63
commit c05f2c21b1

View File

@ -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));