forked from MagicBane/Server
Switch directly on actiontype
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user