This commit is contained in:
mcrcortex
2025-07-13 21:37:25 +10:00
parent aff30961bd
commit 5fe5ebc0a2

View File

@@ -4,6 +4,7 @@ import me.cortex.voxy.client.core.model.IdNotYetComputedException;
import me.cortex.voxy.client.core.model.ModelFactory;
import me.cortex.voxy.client.core.model.ModelQueries;
import me.cortex.voxy.client.core.util.ScanMesher2D;
import me.cortex.voxy.common.Logger;
import me.cortex.voxy.common.util.MemoryBuffer;
import me.cortex.voxy.common.util.UnsafeUtil;
import me.cortex.voxy.common.world.WorldEngine;
@@ -1607,6 +1608,10 @@ public class RenderDataFactory {
return BuiltSection.emptyWithChildren(section.key, section.getNonEmptyChildren());
}
if (this.quadCount >= 1<<16) {
Logger.warn("Large quad count for section " + WorldEngine.pprintPos(section.key) + " is " + this.quadCount);
}
if (this.minX<0 || this.minY<0 || this.minZ<0 || 32<this.maxX || 32<this.maxY || 32<this.maxZ) {
throw new IllegalStateException();
}