Browse Source

failed rune sno longer get consumed

postwipe-teleporting
FatBoy-DOTC 5 months ago
parent
commit
1f732a8ca9
  1. 5
      src/engine/net/client/handlers/ObjectActionMsgHandler.java

5
src/engine/net/client/handlers/ObjectActionMsgHandler.java

@ -264,8 +264,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { @@ -264,8 +264,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
player.cancelOnSpell();
break;
case RUNE:
ApplyRuneMsg.applyRune(uuid, origin, player);
itemMan.consume(item);
if(ApplyRuneMsg.applyRune(uuid, origin, player)) {
itemMan.consume(item);
}
break;
default: //shouldn't be here, consume item
dispatch = Dispatch.borrow(player, msg);

Loading…
Cancel
Save