1
0
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:
DeltaNedas 2020-03-08 03:47:12 +00:00 committed by GitHub
parent 7aa71f38c3
commit 9ef394a99e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }