From 7c9e7fa36aa5b4c3e60e4fb56af1b3a7e3710594 Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Mon, 2 Dec 2024 01:57:05 +0800 Subject: [PATCH] fix LithiumServerTickScheduler fix TickEntry field values not up-to-date when reuse just don't reuse --- .../common/world/scheduler/LithiumServerTickScheduler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/jellysquid/mods/lithium/common/world/scheduler/LithiumServerTickScheduler.java b/src/main/java/me/jellysquid/mods/lithium/common/world/scheduler/LithiumServerTickScheduler.java index ebce97b7..6bd848ff 100644 --- a/src/main/java/me/jellysquid/mods/lithium/common/world/scheduler/LithiumServerTickScheduler.java +++ b/src/main/java/me/jellysquid/mods/lithium/common/world/scheduler/LithiumServerTickScheduler.java @@ -344,7 +344,10 @@ private List> collectTicks(MutableBoundingBox bounds, boole * scheduled ticks which are set to execute at a different time. */ private void addScheduledTick(NextTickListEntry tick) { - TickEntry entry = this.scheduledTicks.computeIfAbsent(tick, this::createTickEntry); + // TISCM fix field value not up-to-date +// TickEntry entry = this.scheduledTicks.computeIfAbsent(tick, this::createTickEntry); + TickEntry entry = this.createTickEntry(tick); + this.scheduledTicks.put(tick, entry); // TISCM Micro Timing logger this.scheduleSuccess = !entry.scheduled;