Skip to content

Commit

Permalink
fix LithiumServerTickScheduler fix TickEntry<T> field values not up-t…
Browse files Browse the repository at this point in the history
…o-date when reuse

just don't reuse
  • Loading branch information
Fallen-Breath committed Dec 1, 2024
1 parent d88aa92 commit 7c9e7fa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,10 @@ private List<NextTickListEntry<T>> collectTicks(MutableBoundingBox bounds, boole
* scheduled ticks which are set to execute at a different time.
*/
private void addScheduledTick(NextTickListEntry<T> tick) {
TickEntry<T> entry = this.scheduledTicks.computeIfAbsent(tick, this::createTickEntry);
// TISCM fix field value not up-to-date
// TickEntry<T> entry = this.scheduledTicks.computeIfAbsent(tick, this::createTickEntry);
TickEntry<T> entry = this.createTickEntry(tick);
this.scheduledTicks.put(tick, entry);

// TISCM Micro Timing logger
this.scheduleSuccess = !entry.scheduled;
Expand Down

0 comments on commit 7c9e7fa

Please sign in to comment.