Remove static keyword from render block variables

The static keyword was removed from several instances of RenderBlocksCTM and RenderBlocksCTMFullbright variables in various SubmapManager classes and ChiselController class. This was done to fix a potential memory leak issue where these static objects could persist in memory even when they're no longer needed. Also, related to this change, the onWorldUnload method that used to clear static reference of RenderBlocksCTMFullbright has been removed from ChiselController.
This commit is contained in:
Pelotrio authored and Martin Robertz committed 2023-11-16 13:52:58 +01:00
1 parent f4291635b2
commit ea103bcc80
5 files changed
+4 -15

No files matched your search

@@ -16,7 +16,7 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerSlab implements ISubmapManager {
@SideOnly(Side.CLIENT)
private static RenderBlocksCTM rb;
private RenderBlocksCTM rb;
private TextureSubmap submap;
private TextureSubmap submapSmall;