mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 11:54:58 +00:00
Fixed AS1/2 - delete operator correct localreg names
This commit is contained in:
@@ -124,6 +124,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
|
||||
if (value instanceof ConstantIndex) {
|
||||
return this.constants.get(((ConstantIndex) value).index);
|
||||
}
|
||||
|
||||
if (value instanceof RegisterNumber) {
|
||||
return ((RegisterNumber) value).translate();
|
||||
}
|
||||
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
@@ -145,6 +150,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
|
||||
if (value instanceof ConstantIndex) {
|
||||
return writer.append(this.constants.get(((ConstantIndex) value).index));
|
||||
}
|
||||
|
||||
if (value instanceof RegisterNumber) {
|
||||
return writer.append(((RegisterNumber) value).translate());
|
||||
}
|
||||
|
||||
return writer.append(value.toString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user