[Memory-opti:fix leak] fix world client leak in renderer (#44)

Co-authored-by: boubou19 <miisterunknown@gmail.com>
This commit is contained in:
Alexdoruandboubou19 authored and GitHub committed 2026-04-30 11:18:51 +02:00
1 parent d3054211db
commit 15298cb677
1 file changed
+3 -1
@@ -85,7 +85,9 @@ object MultipartRenderer
val state = CCRenderState.instance
state.resetInstance()
state.lightMatrix.locate(world, x, y, z)
return tmpart.renderStatic(new Vector3(x, y, z), pass)
val b = tmpart.renderStatic(new Vector3(x, y, z), pass)
state.lightMatrix.access = null
b
}
override def renderInventoryBlock(