From e6722066e6c563ca45d9faa4c39975218d33a29f Mon Sep 17 00:00:00 2001 From: Sword352 Date: Mon, 19 Aug 2024 19:48:15 +0200 Subject: [PATCH] restore the old behaviour for setting variables to hscript --- source/psychlua/HScript.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/psychlua/HScript.hx b/source/psychlua/HScript.hx index 53b01583015..2840ce32ae7 100644 --- a/source/psychlua/HScript.hx +++ b/source/psychlua/HScript.hx @@ -431,6 +431,11 @@ class HScript extends Iris } #end + override public function set(name:String, value:Dynamic, allowOverride:Bool = false):Void { + // should always override by default + super.set(name, value, true); + } + /*override function irisPrint(v):Void { FunkinLua.luaTrace('ERROR (${this.origin}:${interp.posInfos().lineNumber}): ${v}');