mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-11-16 14:15:03 -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;
|
this.menuHandler = menuHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMining(boolean isMining) {
|
|
||||||
this.isMining = isMining;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the mute time.
|
* Sets the mute time.
|
||||||
*
|
*
|
||||||
|
@ -157,8 +157,12 @@ public class Mining implements ObjectListener {
|
|||||||
"You only succeed in scratching the rock.");
|
"You only succeed in scratching the rock.");
|
||||||
if (retry) {
|
if (retry) {
|
||||||
world.getDelayedEventHandler().add(
|
world.getDelayedEventHandler().add(
|
||||||
|
|
||||||
new SingleEvent(owner, 500) {
|
new SingleEvent(owner, 500) {
|
||||||
public void action() {
|
public void action() {
|
||||||
|
if(!owner.isMining() || owner.inCombat()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
owner.setSkillLoops(swings + 1);
|
owner.setSkillLoops(swings + 1);
|
||||||
handleMining(object, owner,
|
handleMining(object, owner,
|
||||||
owner.getClick());
|
owner.getClick());
|
||||||
|
Loading…
Reference in New Issue
Block a user