mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-17 18:51:54 +00:00
actionif + action jump target calcualtion simplified 2
This commit is contained in:
@@ -362,11 +362,9 @@ public class ActionListReader {
|
||||
for (Action a : actions) {
|
||||
long target = -1;
|
||||
if (a instanceof ActionIf) {
|
||||
ActionIf aIf = (ActionIf) a;
|
||||
target = aIf.getAddress() + a.getTotalActionLength() + aIf.getJumpOffset();
|
||||
target = ((ActionIf) a).getTargetAddress();
|
||||
} else if (a instanceof ActionJump) {
|
||||
ActionJump aJump = (ActionJump) a;
|
||||
target = aJump.getAddress() + a.getTotalActionLength() + aJump.getJumpOffset();
|
||||
target = ((ActionJump) a).getTargetAddress();
|
||||
} else if (a instanceof ActionStore) {
|
||||
ActionStore aStore = (ActionStore) a;
|
||||
int storeSize = aStore.getStoreSize();
|
||||
|
||||
Reference in New Issue
Block a user