Rework of error handling.
This commit is contained in:
@@ -88,14 +88,16 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
||||
workOrder.item_name_override = msg.name;
|
||||
workOrder.multiple_slot_request = msg.size;
|
||||
|
||||
// Validate vendor can roll this item
|
||||
// Submit workOder to begin rolling items
|
||||
|
||||
if (ForgeManager.validate(player, workOrder) == false)
|
||||
int validation_result = ForgeManager.submit(workOrder);
|
||||
|
||||
// workOrder cannot be completed
|
||||
|
||||
if (validation_result != 0) {
|
||||
ErrorPopupMsg.sendErrorPopup(player, validation_result);
|
||||
return true;
|
||||
|
||||
// Start rolling the item(s)
|
||||
|
||||
ForgeManager.submit(workOrder);
|
||||
}
|
||||
|
||||
//Create Multiple Item Function.. Fill all empty slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user