From 5e5b9884ef81520f8bf03f684b9d64932d44ffd2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 14 Apr 2024 14:13:10 -0400 Subject: [PATCH] Begin integration --- .../client/handlers/ItemProductionMsgHandler.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 99a5cdbf..f7386b54 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -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);