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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user