Possibly fixed reloading resources crash
This commit is contained in:
parent
f1aa39a8a9
commit
a87779e7ee
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
37985
javascript/classes.js
37985
javascript/classes.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||||
|
|
|
@ -135,7 +135,6 @@ public class TextureUtils {
|
||||||
BetterGrass.update();
|
BetterGrass.update();
|
||||||
CustomSky.update();
|
CustomSky.update();
|
||||||
SmartLeaves.updateLeavesModels();
|
SmartLeaves.updateLeavesModels();
|
||||||
Config.getTextureManager().tick();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user