Make sure the server can load client-side mod's for syncing
This commit is contained in:
parent
14d3c18945
commit
7eb44ebb82
2 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,7 @@ public class DataExchangeAPI extends DataExchange {
|
|||
* @param modID - {@link String} modID.
|
||||
*/
|
||||
public static void registerModDependency(String modID) {
|
||||
if (ModUtil.getModInfo(modID, false) != null) {
|
||||
if (ModUtil.getModInfo(modID, false) != null && !"0.0.0".equals(ModUtil.getModVersion(modID))) {
|
||||
registerMod(modID);
|
||||
} else {
|
||||
BCLib.LOGGER.info("Mod Dependency '" + modID + "' not found. This is probably OK.");
|
||||
|
|
|
@ -104,6 +104,11 @@ public class ModUtil {
|
|||
.getVersion()
|
||||
.toString();
|
||||
}
|
||||
|
||||
//not found in loaded mods, lets check the local mods folder
|
||||
final ModInfo mi = getModInfo(modID, false);
|
||||
if (mi!=null) return mi.getVersion();
|
||||
|
||||
return "0.0.0";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue