Switch directly on actiontype

This commit is contained in:
MagicBot committed 2024-04-07 13:01:43 -04:00
1 parent fc71b8cb61
commit 21b1dba84d
1 file changed
+1 -3
@@ -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;