()
| 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 | { |
no test coverage detected