Fix mining glitch, where you can walk away.

This commit is contained in:
CodeForFame 2012-01-07 15:52:38 -06:00
parent cce533680a
commit ad023434c1
2 changed files with 4 additions and 4 deletions

View File

@ -2808,10 +2808,6 @@ public final class Player extends Mob {
this.menuHandler = menuHandler;
}
public void setMining(boolean isMining) {
this.isMining = isMining;
}
/**
* Sets the mute time.
*

View File

@ -157,8 +157,12 @@ public class Mining implements ObjectListener {
"You only succeed in scratching the rock.");
if (retry) {
world.getDelayedEventHandler().add(
new SingleEvent(owner, 500) {
public void action() {
if(!owner.isMining() || owner.inCombat()) {
return;
}
owner.setSkillLoops(swings + 1);
handleMining(object, owner,
owner.getClick());