Commit 2300095b authored by Scott T's avatar Scott T

Little fixes

parent ce8f5813
......@@ -207,7 +207,8 @@ public final class Mining implements ObjectActionListener,
owner.playSound("mine");
showBubble(owner, new Item(ItemId.IRON_PICKAXE.id()));
owner.message("You swing your pick at the rock...");
owner.setBatchEvent(new BatchEvent(owner, 1800, "Mining", 1000 + retrytimes, true) {
retrytimes = Constants.GameServer.BATCH_PROGRESSION ? Formulae.getRepeatTimes(owner, Skills.MINING) : retrytimes + 1000;
owner.setBatchEvent(new BatchEvent(owner, 1800, "Mining", retrytimes, true) {
@Override
public void action() {
final Item ore = new Item(def.getOreId());
......
......@@ -1921,8 +1921,8 @@ public final class Player extends Mob {
public void setBatchEvent(BatchEvent batchEvent) {
if (batchEvent != null) {
batchEvent.getOwner().checkAndInterruptBatchEvent();
this.batchEvent = batchEvent;
Server.getServer().getEventHandler().removePlayersEvents(batchEvent.getOwner());
Server.getServer().getEventHandler().add(batchEvent);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment