mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-23 06:18:00 +03:00
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:
parent
7aa71f38c3
commit
9ef394a99e
@ -127,6 +127,8 @@ public class Scripts implements Disposable{
|
|||||||
if(!dir.exists()) return null; // Mod and folder not found
|
if(!dir.exists()) return null; // Mod and folder not found
|
||||||
return loadSource(script, dir, validator);
|
return loadSource(script, dir, validator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentMod = required;
|
||||||
return loadSource(script, required.root.child("scripts"), validator);
|
return loadSource(script, required.root.child("scripts"), validator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user