From 9ef394a99ea06b5e39e9208839e946a8602afd63 Mon Sep 17 00:00:00 2001 From: DeltaNedas <39013340+DeltaNedas@users.noreply.github.com> Date: Sun, 8 Mar 2020 03:47:12 +0000 Subject: [PATCH] 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 --- core/src/mindustry/mod/Scripts.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mindustry/mod/Scripts.java b/core/src/mindustry/mod/Scripts.java index 7c2bde72e2..1e1e5cb325 100644 --- a/core/src/mindustry/mod/Scripts.java +++ b/core/src/mindustry/mod/Scripts.java @@ -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); }