set current mod to required mod (#1684)

or you will need to prefix mod name in requires of the required mod
instead you now need to prefix current mods name after youve required from another mod
This commit is contained in:
DeltaNedas
2020-03-08 03:47:12 +00:00
committed by GitHub
parent 7aa71f38c3
commit 9ef394a99e

View File

@@ -127,6 +127,8 @@ public class Scripts implements Disposable{
if(!dir.exists()) return null; // Mod and folder not found
return loadSource(script, dir, validator);
}
currentMod = required;
return loadSource(script, required.root.child("scripts"), validator);
}