diff --git a/imm_ptl_core/src/main/java/qouteall/imm_ptl/core/render/optimization/SharedBlockMeshBuffers.java b/imm_ptl_core/src/main/java/qouteall/imm_ptl/core/render/optimization/SharedBlockMeshBuffers.java index b04c62f27..cebc05500 100644 --- a/imm_ptl_core/src/main/java/qouteall/imm_ptl/core/render/optimization/SharedBlockMeshBuffers.java +++ b/imm_ptl_core/src/main/java/qouteall/imm_ptl/core/render/optimization/SharedBlockMeshBuffers.java @@ -93,7 +93,7 @@ private static void cleanup() { } public static String getDebugString() { - if (IPGlobal.enableSharedBlockMeshBuffers) { + if (IPGlobal.enableSharedBlockMeshBuffers && threadBuffers != null) { return "SharedBlockMeshBuffers " + Integer.toString(threadBuffers.size()); } return "";