From 21b1dba84da582ae4d6f92159cb7176ad5fcb3f6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 7 Apr 2024 13:01:43 -0400 Subject: [PATCH] Switch directly on actiontype --- src/engine/net/client/handlers/ItemProductionMsgHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 85978974..f21c44dc 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -441,9 +441,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { // Process Request - mbEnums.ProductionActionType actionType = mbEnums.ProductionActionType.values()[msg.actionType.ordinal()]; - - switch (actionType) { + switch (msg.actionType) { case PRODUCE: boolean isRandom = false;