diff --git a/src/main/java/me/cortex/voxy/common/world/WorldSection.java b/src/main/java/me/cortex/voxy/common/world/WorldSection.java index add1fd7c..dfdce516 100644 --- a/src/main/java/me/cortex/voxy/common/world/WorldSection.java +++ b/src/main/java/me/cortex/voxy/common/world/WorldSection.java @@ -46,6 +46,10 @@ public final class WorldSection { return state>>1; } + public int getRefCount() { + return this.atomicState.get()>>1; + } + public int release() { int state = this.atomicState.addAndGet(-2); if (state < 1) {