mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-11-16 06:05:06 -05:00
Fix mining glitch, where you can walk away.
This commit is contained in:
parent
cce533680a
commit
ad023434c1
@ -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.
|
||||
*
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user