Switch directly on actiontype

This commit is contained in:
2024-04-07 13:01:43 -04:00
parent fc71b8cb61
commit 21b1dba84d
@@ -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;