From c1a36a3f4b91e4ecb4c129b3e5c4a2dcd8b8dc24 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sat, 7 Jan 2023 22:22:05 +0100 Subject: [PATCH] improve deez nuts --- hscript/UsingHandler.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hscript/UsingHandler.hx b/hscript/UsingHandler.hx index 76f493c..dc2e08d 100644 --- a/hscript/UsingHandler.hx +++ b/hscript/UsingHandler.hx @@ -20,7 +20,8 @@ class UsingHandler { } public static function init() { - Compiler.addGlobalMetadata('', '@:build(hscript.UsingHandler.build())'); + Compiler.addGlobalMetadata('flixel', '@:build(hscript.UsingHandler.build())'); + Compiler.addGlobalMetadata('openfl.display.BlendMode', '@:build(hscript.UsingHandler.build())'); } public static function build():Array { @@ -29,7 +30,7 @@ class UsingHandler { if (clRef == null) return fields; var cl = clRef.get(); - if (cl.name.startsWith("Flx") && cl.name.endsWith("_Impl_") && cl.params.length <= 0 && !cl.meta.has(":multiType")) { + if (/* cl.name.startsWith("Flx") && */ cl.name.endsWith("_Impl_") && cl.params.length <= 0 && !cl.meta.has(":multiType")) { var metas = cl.meta.get(); var shadowClass = macro class {