From f9d7a409769f5c9f8b30a060e08f8edcaccca29f Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Tue, 28 Apr 2026 20:29:39 +0200 Subject: [PATCH] fix world client leak caused by light matrix --- src/main/scala/mrtjp/projectred/exploration/renders.scala | 1 + src/main/scala/mrtjp/projectred/fabrication/tileicprinter.scala | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/scala/mrtjp/projectred/exploration/renders.scala b/src/main/scala/mrtjp/projectred/exploration/renders.scala index d703356db..e2ae492f8 100644 --- a/src/main/scala/mrtjp/projectred/exploration/renders.scala +++ b/src/main/scala/mrtjp/projectred/exploration/renders.scala @@ -165,6 +165,7 @@ object RenderLily extends TInstancedBlockRender { new IconTransformation(iconC), new ColourMultiplier(Colors(te.meta).rgba) ) + state.lightMatrix.access = null; } } diff --git a/src/main/scala/mrtjp/projectred/fabrication/tileicprinter.scala b/src/main/scala/mrtjp/projectred/fabrication/tileicprinter.scala index 006672b06..1e9695060 100644 --- a/src/main/scala/mrtjp/projectred/fabrication/tileicprinter.scala +++ b/src/main/scala/mrtjp/projectred/fabrication/tileicprinter.scala @@ -673,6 +673,7 @@ object RenderICPrinter extends TInstancedBlockRender { * with screwdriver to see the issue. */ // lowerBoxes(0).render(Rotation.quarterRotations(tile.rotation) at Vector3.center `with` new Translation(x, y, z), iconT, CCRenderState.lightMatrix) + state.lightMatrix.access = null } override def getIcon(side: Int, meta: Int) = side match {