From e89404abda15bf8113271473a7fc71b6b43f6ef1 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 11 May 2024 09:19:29 -0400 Subject: [PATCH] json and string methods updated --- src/engine/loot/WorkOrder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index 90053de2..28db2a0f 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -195,7 +195,7 @@ public class WorkOrder implements Delayed { jsonWorkOrder.put("workOrderID", workOrder.workOrderID); jsonWorkOrder.put("vendor", workOrder.vendor.getObjectUUID()); - jsonWorkOrder.put("slots_used", workOrder.slots_used); + jsonWorkOrder.put("slots_used", workOrder.slots_used.get()); jsonWorkOrder.put("total_to_produce", workOrder.total_to_produce); jsonWorkOrder.put("total_produced", workOrder.total_produced); jsonWorkOrder.put("multiple_slot_request", workOrder.multiple_slot_request); @@ -207,7 +207,7 @@ public class WorkOrder implements Delayed { jsonWorkOrder.put("suffixToken", workOrder.suffixToken); jsonWorkOrder.put("rollingDuration", workOrder.rollingDuration); jsonWorkOrder.put("completionTime", workOrder.completionTime); - jsonWorkOrder.put("runCompleted", workOrder.runCompleted); + jsonWorkOrder.put("runCompleted", workOrder.runCompleted.get()); ArrayList cookingTokens = new ArrayList<>(); @@ -227,7 +227,7 @@ public class WorkOrder implements Delayed { String outSTring = "\r\nwordOrderID: " + this.workOrderID + "\r\n" + "vendor: " + this.vendor.getObjectUUID() + "\r\n" + - "slots_used: " + this.slots_used + "\r\n" + + "slots_used: " + this.slots_used.get() + "\r\n" + "total_to_produce: " + this.total_to_produce + "\r\n" + "total_produced: " + this.total_produced + "\r\n" + "templateID: " + this.templateID + "\r\n" + @@ -236,7 +236,7 @@ public class WorkOrder implements Delayed { "suffixToken: " + this.suffixToken + "\r\n" + "rollingDuration: " + duration + "\r\n" + "completionTime: " + localDateTime + "\r\n" + - "runCompleted: " + this.runCompleted + "\r\n" + + "runCompleted: " + this.runCompleted.get() + "\r\n" + "productionCost: " + this.production_cost.toString() + "\r\n" + "totalProductionCost:: " + this.production_cost_total.toString();