added failsafe location

This commit is contained in:
AbrarSyed committed 2014-11-07 01:08:50 -06:00
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