mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-27 15:33:19 +00:00
Fix jar resource loading on newer Java versions (still works on 8) (#337)
This commit is contained in:
1 parent
75ff631f16
commit
e133afc774
3 files changed
+3
-4
No files matched your search
@@ -190,7 +190,7 @@ public abstract class GuiRecipeTab extends Widget {
|
||||
final boolean fromJar = NEIClientConfig.loadHandlersFromJar();
|
||||
NEIClientConfig.logger.info("Loading handler info from " + (fromJar ? "JAR" : "Config"));
|
||||
handlerMap.clear();
|
||||
URL handlerUrl = Thread.currentThread().getContextClassLoader().getResource("assets/nei/csv/handlers.csv");
|
||||
URL handlerUrl = GuiRecipeTab.class.getResource("/assets/nei/csv/handlers.csv");
|
||||
|
||||
URL url;
|
||||
if (fromJar) {
|
||||
|
||||
Reference in new issue
Block a user