From 39d04188b49dc87a07c85ba6c0bdd0435ae5d55a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 26 Apr 2024 19:10:56 -0500 Subject: [PATCH] cleanup old rune handler in ObjectActionMsgHandler --- .../handlers/ObjectActionMsgHandler.java | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/engine/net/client/handlers/ObjectActionMsgHandler.java b/src/engine/net/client/handlers/ObjectActionMsgHandler.java index 144ab3a8..21c5ff0d 100644 --- a/src/engine/net/client/handlers/ObjectActionMsgHandler.java +++ b/src/engine/net/client/handlers/ObjectActionMsgHandler.java @@ -187,27 +187,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { case POTION: //potions, tears of saedron case SCROLL: //runes, petition, warrant, scrolls - if (uuid > 3000 && uuid < 3050) { //Discipline Runes - if (ApplyRuneMsg.applyRune(uuid, origin, player)) { - itemMan.consume(item); - } - break; - } else if (uuid > 249999 && uuid < 250123) { //stat and mastery runes - if (ApplyRuneMsg.applyRune(uuid, origin, player)) { - itemMan.consume(item); - } - break; - } else if (uuid > 250114 && uuid < 250123) { //mastery runes - if (ApplyRuneMsg.applyRune(uuid, origin, player)) { - itemMan.consume(item); - } - break; - } else if (uuid > 252122 && uuid < 252128) { //mastery runes - if (ApplyRuneMsg.applyRune(uuid, origin, player)) { - itemMan.consume(item); - } - break; - } else if (uuid > 680069 && uuid < 680074) //Handle Charter, Deed, Petition, Warrant here + if (uuid > 680069 && uuid < 680074) //Handle Charter, Deed, Petition, Warrant here { break; } else if (uuid > 910010 && uuid < 910019) { @@ -290,6 +270,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { break; case RUNE: ApplyRuneMsg.applyRune(uuid,origin,player); + itemMan.consume(item); break; default: //shouldn't be here, consume item dispatch = Dispatch.borrow(player, msg);