forked from MagicBane/Server
ActionType Take
This commit is contained in:
@@ -441,7 +441,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
// Process Request
|
||||
|
||||
mbEnums.ProductionActionType actionType = mbEnums.ProductionActionType.values()[msg.getActionType()];
|
||||
mbEnums.ProductionActionType actionType = mbEnums.ProductionActionType.values()[msg.actionType.ordinal()];
|
||||
|
||||
switch (actionType) {
|
||||
|
||||
@@ -465,7 +465,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
||||
break;
|
||||
case RECYCLE:
|
||||
recycleItem(msg.getItems(), vendorNPC, origin);
|
||||
msg.setActionType(7);
|
||||
msg.actionType = mbEnums.ProductionActionType.TAKE;
|
||||
dispatch = Dispatch.borrow(player, msg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
break;
|
||||
|
||||
@@ -504,10 +504,6 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getActionType() {
|
||||
return actionType.ordinal();
|
||||
}
|
||||
|
||||
public final void setActionType(int actionType) {
|
||||
this.actionType = mbEnums.ProductionActionType.values()[actionType];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user