Possibly fixed reloading resources crash

This commit is contained in:
PeytonPlayz595 2023-10-16 22:40:03 -04:00
parent f1aa39a8a9
commit a87779e7ee
6 changed files with 56971 additions and 56993 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@ public class CustomSky {
Properties properties = new Properties(); Properties properties = new Properties();
properties.load(inputstream); properties.load(inputstream);
inputstream.close(); inputstream.close();
Config.dbg("CustomSky properties: " + s2); //Config.dbg("CustomSky properties: " + s2);
String s3 = s1 + k + ".png"; String s3 = s1 + k + ".png";
CustomSkyLayer customskylayer = new CustomSkyLayer(properties, s3); CustomSkyLayer customskylayer = new CustomSkyLayer(properties, s3);
@ -58,7 +58,7 @@ public class CustomSky {
ITextureObject itextureobject = TextureUtils.getTexture(resourcelocation1); ITextureObject itextureobject = TextureUtils.getTexture(resourcelocation1);
if (itextureobject == null) { if (itextureobject == null) {
Config.log("CustomSky: Texture not found: " + resourcelocation1); //Config.log("CustomSky: Texture not found: " + resourcelocation1);
} else { } else {
customskylayer.textureId = itextureobject.getGlTextureId(); customskylayer.textureId = itextureobject.getGlTextureId();
list.add(customskylayer); list.add(customskylayer);

View File

@ -135,7 +135,6 @@ public class TextureUtils {
BetterGrass.update(); BetterGrass.update();
CustomSky.update(); CustomSky.update();
SmartLeaves.updateLeavesModels(); SmartLeaves.updateLeavesModels();
Config.getTextureManager().tick();
} }
} }