From 834253f0aee69409cbf36ebf70f6df48ec812f4a Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 3 May 2025 15:10:41 +1000 Subject: [PATCH] thing --- .../me/cortex/voxy/common/world/ActiveSectionTracker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java b/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java index 071a6866..5957170e 100644 --- a/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java +++ b/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java @@ -130,8 +130,10 @@ public class ActiveSectionTracker { } return section; } else { - while ((section = holder.obj) == null) + while ((section = holder.obj) == null) { + Thread.onSpinWait(); Thread.yield(); + } //lock.lock(); {//Dont think need to lock here