Begin integration

This commit is contained in:
2024-04-14 14:13:10 -04:00
parent 94ab64d629
commit 5e5b9884ef
@@ -92,23 +92,13 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
int validation_result = ForgeManager.submit(workOrder);
// workOrder cannot be completed
// workOrder could not be completed
// Report back to the user the reason why
if (validation_result != 0) {
ErrorPopupMsg.sendErrorPopup(player, validation_result);
return true;
}
//Create Multiple Item Function.. Fill all empty slots
if (msg.size > 0) {
int emptySlots = vendorNPC.getRank() - vendorNPC.getRolling().size();
if (emptySlots > 0)
for (int i = 0; i < emptySlots; i++)
vendorNPC.produceItem(player.getObjectUUID(), msg.total_to_produce, isRandom, msg.pToken, msg.sToken, msg.name, msg.templateID);
} else
vendorNPC.produceItem(player.getObjectUUID(), msg.total_to_produce, isRandom, msg.pToken, msg.sToken, msg.name, msg.templateID);
break;
case JUNK:
junkItem(msg.templateID, vendorNPC, origin);