forked from MagicBane/Server
Logging on each cycle
This commit is contained in:
@@ -78,6 +78,7 @@ public enum ForgeManager implements Runnable {
|
||||
|
||||
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
|
||||
workOrders.add(workOrder);
|
||||
Logger.info(workOrder.toString());
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -65,7 +65,7 @@ public class WorkOrder implements Delayed {
|
||||
|
||||
LocalDateTime localDateTime = Instant.ofEpochMilli(this.completionTime)
|
||||
.atZone(ZoneId.systemDefault()).toLocalDateTime();
|
||||
Duration duration = Duration.ofMillis(38114000);
|
||||
Duration duration = Duration.ofMillis(this.rollingDuration);
|
||||
|
||||
String outSTring = "\r\nwordOrderID: " + this.workOrderID + "\r\n" +
|
||||
"vendor: " + this.vendor.getObjectUUID() + "\r\n" +
|
||||
|
||||
Reference in New Issue
Block a user