mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-04 15:41:40 +00:00
ClassInstanceMultiMap belongs to Minecraft vanilla entity storage. And is unused, since replaced by spottedleaf's entity storage (rewrite chunk system). However these patches might be useful for vanilla entity storage if is used.
20 lines
987 B
Diff
20 lines
987 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MachineBreaker <saltspigotpp@gmail.com>
|
|
Date: Wed, 16 Oct 2024 03:39:24 -0400
|
|
Subject: [PATCH] Avoid useless deque clear on LevelTicks#cleanupAfterTick
|
|
|
|
|
|
diff --git a/net/minecraft/world/ticks/LevelTicks.java b/net/minecraft/world/ticks/LevelTicks.java
|
|
index fbf0d3b808c66e8971c747619f6acf7417af5ef7..d4542a86a2a9bfcfa7b6b7a213f233542ffed797 100644
|
|
--- a/net/minecraft/world/ticks/LevelTicks.java
|
|
+++ b/net/minecraft/world/ticks/LevelTicks.java
|
|
@@ -182,7 +182,7 @@ public class LevelTicks<T> implements LevelTickAccess<T> {
|
|
}
|
|
|
|
private void cleanupAfterTick() {
|
|
- this.toRunThisTick.clear();
|
|
+ //this.toRunThisTick.clear(); // Leaf - Avoid useless deque clear on LevelTicks#cleanupAfterTick - This method runs after toRunThisTick is polled so this is always empty
|
|
this.containersToTick.clear();
|
|
this.alreadyRunThisTick.clear();
|
|
this.toRunThisTickSet.clear();
|