forked from MagicBane/Server
Expand scope of try block.
This commit is contained in:
@@ -42,9 +42,6 @@ public enum ForgeManager implements Runnable {
|
||||
|
||||
try {
|
||||
workOrder = forge.take();
|
||||
} catch (Exception e) {
|
||||
Logger.error(e);
|
||||
}
|
||||
|
||||
if (workOrder.total_produced >= workOrder.total_to_produce) {
|
||||
|
||||
@@ -82,6 +79,10 @@ public enum ForgeManager implements Runnable {
|
||||
// Debugging
|
||||
|
||||
Logger.info(workOrder.toString());
|
||||
|
||||
} catch (Exception e) {
|
||||
Logger.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user