Browse Source

Switch directly on actiontype

combat-2
MagicBot 9 months ago
parent
commit
21b1dba84d
  1. 4
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

4
src/engine/net/client/handlers/ItemProductionMsgHandler.java

@ -441,9 +441,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { @@ -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;

Loading…
Cancel
Save