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