Switch directly on actiontype
This commit is contained in:
@@ -441,9 +441,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
|||||||
|
|
||||||
// Process Request
|
// Process Request
|
||||||
|
|
||||||
mbEnums.ProductionActionType actionType = mbEnums.ProductionActionType.values()[msg.actionType.ordinal()];
|
switch (msg.actionType) {
|
||||||
|
|
||||||
switch (actionType) {
|
|
||||||
|
|
||||||
case PRODUCE:
|
case PRODUCE:
|
||||||
boolean isRandom = false;
|
boolean isRandom = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user