Add method to clear static textures on world unload

This commit is contained in:
Pelotrio authored and Martin Robertz committed 2023-11-16 13:52:58 +01:00
1 parent ea103bcc80
commit d726351abc
2 files changed
+14 -2

No files matched your search

@@ -345,7 +345,12 @@ public enum TextureType {
}
}
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
public static void clearStatics() {
theRenderBlocksCTM = null;
theRenderBlocksColumn = null;
}
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
return new SubmapManagerDefault(this, variation, texturePath);
}