From 1f732a8ca962d4e584094d3a00e0bfd3a36f741f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 22 Jun 2024 19:31:13 -0500 Subject: [PATCH] failed rune sno longer get consumed --- src/engine/net/client/handlers/ObjectActionMsgHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/handlers/ObjectActionMsgHandler.java b/src/engine/net/client/handlers/ObjectActionMsgHandler.java index 688c56ce..b897ec9a 100644 --- a/src/engine/net/client/handlers/ObjectActionMsgHandler.java +++ b/src/engine/net/client/handlers/ObjectActionMsgHandler.java @@ -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);