From 31129493e5eb792f4e040484e8da77dbc2cee1db Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 7 Apr 2024 12:51:58 -0400 Subject: [PATCH] ActionType Take --- src/engine/net/client/handlers/ItemProductionMsgHandler.java | 4 ++-- src/engine/net/client/msg/ItemProductionMsg.java | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index cdce3cb7..85978974 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -441,7 +441,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { // Process Request - mbEnums.ProductionActionType actionType = mbEnums.ProductionActionType.values()[msg.getActionType()]; + mbEnums.ProductionActionType actionType = mbEnums.ProductionActionType.values()[msg.actionType.ordinal()]; switch (actionType) { @@ -465,7 +465,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { break; case RECYCLE: recycleItem(msg.getItems(), vendorNPC, origin); - msg.setActionType(7); + msg.actionType = mbEnums.ProductionActionType.TAKE; dispatch = Dispatch.borrow(player, msg); DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY); break; diff --git a/src/engine/net/client/msg/ItemProductionMsg.java b/src/engine/net/client/msg/ItemProductionMsg.java index f9ac05f2..2710b80f 100644 --- a/src/engine/net/client/msg/ItemProductionMsg.java +++ b/src/engine/net/client/msg/ItemProductionMsg.java @@ -504,10 +504,6 @@ public class ItemProductionMsg extends ClientNetMsg { this.size = size; } - public int getActionType() { - return actionType.ordinal(); - } - public final void setActionType(int actionType) { this.actionType = mbEnums.ProductionActionType.values()[actionType]; }