diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt (renamed from src/main/kotlin/dulkirmod/features/ListClear.kt) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ListClear.kt b/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt index 2a574d2..a4dfc9b 100644 --- a/src/main/kotlin/dulkirmod/features/ListClear.kt +++ b/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt @@ -6,12 +6,12 @@ import net.minecraft.entity.Entity import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent -object ListClear { +object MemoryLeakFix { var lastClear = System.currentTimeMillis() @SubscribeEvent fun onTick(event: TickEvent.ClientTickEvent) { - if (!Config.crimsonIslesMemoryLeakPatch) + if (!Config.crimsonIslesMemoryLeakPatch) return if (System.currentTimeMillis() - lastClear >= 30000L) { val world = mc.theWorld ?: return |