mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-24 05:26:08 +00:00
Fixed AS3 direct editation - namespaces were initialized in class initializers
This commit is contained in:
@@ -668,6 +668,9 @@ public class AVM2SourceGenerator implements SourceGenerator {
|
||||
ns = genNs(importedClasses, pkg, ((ConstAVM2Item) ti).pkg, openedNamespaces, localData, ((ConstAVM2Item) ti).line);
|
||||
tname = ((ConstAVM2Item) ti).var;
|
||||
isConst = true;
|
||||
if (((ConstAVM2Item) ti).type.toString().equals("Namespace")) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (isStatic && val != null) {
|
||||
sinitcode.add(ins(AVM2Instructions.FindProperty, traitName(ns, tname)));
|
||||
|
||||
Reference in New Issue
Block a user