Minor class cleanup

This commit is contained in:
2024-04-08 16:49:19 -04:00
parent bfa43823f6
commit cafe0a0fe1
2 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ public enum ForgeManager implements Runnable {
workOrder.total_produced = workOrder.total_produced - 1;
workOrders.add(workOrder);
Logger.info("Workorder has cycled: " + workOrder.workOrderID);
Logger.info("workorder:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")");
} catch (InterruptedException e) {
e.printStackTrace();
}
@@ -83,7 +83,7 @@ public enum ForgeManager implements Runnable {
// Single item rolls are total_to_produce of 0;
if (workOrder.slotCount > 1 && workOrder.total_to_produce == 0)
if (workOrder.slotCount > 0 && workOrder.total_to_produce == 0)
workOrder.slotCount = 1;
Logger.info(workOrder.toString());
+13 -13
View File
@@ -54,19 +54,19 @@ public class WorkOrder implements Delayed {
}
public String toString() {
String outSTring = "wordOrderID" + this.workOrderID + "\r\n" +
"vendor" + this.vendor.getObjectUUID() + "\r\n" +
"slotCount" + this.slotCount + "\r\n" +
"total_to_produce" + this.total_to_produce + "\r\n" +
"total_produced" + this.total_produced + "\r\n" +
"templateID" + this.templateID + "\r\n" +
"itemName" + this.itemName + "\r\n" +
"prefixToken" + this.prefixToken + "\r\n" +
"suffixToken" + this.suffixToken + "\r\n" +
"rollingDuration" + this.rollingDuration + "\r\n" +
"completionTime" + this.completionTime + "\r\n" +
"runCompleted" + this.runCompleted + "\r\n" +
"runCanceled" + this.runCanceled + "\r\n";
String outSTring = "wordOrderID: " + this.workOrderID + "\r\n" +
"vendor: " + this.vendor.getObjectUUID() + "\r\n" +
"slotCount: " + this.slotCount + "\r\n" +
"total_to_produce: " + this.total_to_produce + "\r\n" +
"total_produced: " + this.total_produced + "\r\n" +
"templateID: " + this.templateID + "\r\n" +
"itemName: " + this.itemName + "\r\n" +
"prefixToken: " + this.prefixToken + "\r\n" +
"suffixToken: " + this.suffixToken + "\r\n" +
"rollingDuration: " + this.rollingDuration + "\r\n" +
"completionTime: " + this.completionTime + "\r\n" +
"runCompleted: " + this.runCompleted + "\r\n" +
"runCanceled: " + this.runCanceled + "\r\n";
return outSTring;
}