MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / update

Method update

src/main/java/net/optifine/EmissiveTextures.java:115–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 public static void update()
116 {
117 active = false;
118 suffixEmissive = null;
119 suffixEmissivePng = null;
120
121 if (Config.isEmissiveTextures())
122 {
123 try
124 {
125 String s = "optifine/emissive.properties";
126 ResourceLocation resourcelocation = new ResourceLocation(s);
127 InputStream inputstream = Config.getResourceStream(resourcelocation);
128
129 if (inputstream == null)
130 {
131 return;
132 }
133
134 dbg("Loading " + s);
135 Properties properties = new PropertiesOrdered();
136 properties.load(inputstream);
137 inputstream.close();
138 suffixEmissive = properties.getProperty("suffix.emissive");
139
140 if (suffixEmissive != null)
141 {
142 suffixEmissivePng = suffixEmissive + ".png";
143 }
144
145 active = suffixEmissive != null;
146 }
147 catch (FileNotFoundException var4)
148 {
149 return;
150 }
151 catch (IOException ioexception)
152 {
153 ioexception.printStackTrace();
154 }
155 }
156 }
157
158 private static void dbg(String str)
159 {

Callers 1

Calls 6

isEmissiveTexturesMethod · 0.95
getResourceStreamMethod · 0.95
dbgMethod · 0.95
closeMethod · 0.65
loadMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected