From 3df1da364c9a467dfe294fd193b2fddae0b10e76 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 1 Apr 2024 16:54:10 -0400 Subject: [PATCH] Magic number removed --- src/engine/net/client/handlers/ObjectActionMsgHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/ObjectActionMsgHandler.java b/src/engine/net/client/handlers/ObjectActionMsgHandler.java index 68f57119..e4ec2742 100644 --- a/src/engine/net/client/handlers/ObjectActionMsgHandler.java +++ b/src/engine/net/client/handlers/ObjectActionMsgHandler.java @@ -250,7 +250,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { // test character targeted - if (item.template.template_id == 910005) { + if (item.template.item_type.equals(Enum.ItemType.BUCKET)) { // test for valid target type if (target.getObjectType() == Enum.GameObjectType.PlayerCharacter)