Browse Source

Expand scope of try block.

combat-2
MagicBot 8 months ago
parent
commit
e1d43ce0d0
  1. 7
      src/engine/gameManager/ForgeManager.java

7
src/engine/gameManager/ForgeManager.java

@ -42,9 +42,6 @@ public enum ForgeManager implements Runnable {
try { try {
workOrder = forge.take(); workOrder = forge.take();
} catch (Exception e) {
Logger.error(e);
}
if (workOrder.total_produced >= workOrder.total_to_produce) { if (workOrder.total_produced >= workOrder.total_to_produce) {
@ -82,6 +79,10 @@ public enum ForgeManager implements Runnable {
// Debugging // Debugging
Logger.info(workOrder.toString()); Logger.info(workOrder.toString());
} catch (Exception e) {
Logger.error(e);
}
} }
} }

Loading…
Cancel
Save