diff --git a/src/main/java/team/unnamed/molang/MoLangEngine.java b/src/main/java/team/unnamed/molang/MoLangEngine.java index 92d0b9f..cf3d572 100644 --- a/src/main/java/team/unnamed/molang/MoLangEngine.java +++ b/src/main/java/team/unnamed/molang/MoLangEngine.java @@ -20,7 +20,6 @@ public class MoLangEngine { private final MoLangParser parser = new StandardMoLangParser(); - private final StorageBinding variable = new StorageBinding(); private final Map globalBindings; @@ -35,7 +34,7 @@ public Object eval(String script) throws ScriptException { public Object eval(Reader reader) throws ScriptException { try { Bindings bindings = new SimpleBindings(); - bindings.put("variable", variable); + bindings.putAll(globalBindings); // temporal storage StorageBinding temp = new StorageBinding();