mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-26 06:53:26 +00:00
added failsafe location
This commit is contained in:
1 parent
20dd46b696
commit
f8da4d8147
1 file changed
+2
@@ -37,6 +37,8 @@ public class NEICorePlugin implements IFMLLoadingPlugin, IFMLCallHook
|
||||
@Override
|
||||
public void injectData(Map<String, Object> data) {
|
||||
location = (File) data.get("coremodLocation");
|
||||
if (location == null)
|
||||
location = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user