()
| 99 | } |
| 100 | |
| 101 | private static void initialize() |
| 102 | { |
| 103 | initialized = true; |
| 104 | mapEntityLightLevels.clear(); |
| 105 | mapItemLightLevels.clear(); |
| 106 | String[] astring = ReflectorForge.getForgeModIds(); |
| 107 | |
| 108 | for (int i = 0; i < astring.length; ++i) |
| 109 | { |
| 110 | String s = astring[i]; |
| 111 | |
| 112 | try |
| 113 | { |
| 114 | ResourceLocation resourcelocation = new ResourceLocation(s, "optifine/dynamic_lights.properties"); |
| 115 | InputStream inputstream = Config.getResourceStream(resourcelocation); |
| 116 | loadModConfiguration(inputstream, resourcelocation.toString(), s); |
| 117 | } |
| 118 | catch (IOException var5) |
| 119 | { |
| 120 | ; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | if (mapEntityLightLevels.size() > 0) |
| 125 | { |
| 126 | Config.dbg("DynamicLights entities: " + mapEntityLightLevels.size()); |
| 127 | } |
| 128 | |
| 129 | if (mapItemLightLevels.size() > 0) |
| 130 | { |
| 131 | Config.dbg("DynamicLights items: " + mapItemLightLevels.size()); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | private static void loadModConfiguration(InputStream in, String path, String modId) |
| 136 | { |
no test coverage detected