mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 19:58:52 +00:00
using existing getOffset method everywhere, made offset is privete
This commit is contained in:
@@ -122,6 +122,7 @@ public abstract class Action implements GraphSourceItem {
|
||||
*/
|
||||
public int actionLength;
|
||||
|
||||
// todo: honfika: rename to offset to be similar with AS3
|
||||
private long address;
|
||||
|
||||
@Override
|
||||
@@ -208,6 +209,7 @@ public abstract class Action implements GraphSourceItem {
|
||||
}
|
||||
|
||||
public int getTotalActionLength() {
|
||||
// honfika: todo rename to getBytesLength to match the name with the similar method in AS3
|
||||
return actionLength + 1 + (actionCode >= 0x80 ? 2 : 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -672,7 +672,7 @@ public class FastActionList implements Collection<ActionItem> {
|
||||
if (o instanceof ActionItem) {
|
||||
item = (ActionItem) o;
|
||||
} else if (o instanceof Action) {
|
||||
item = actionItemMap.get(o);
|
||||
item = actionItemMap.get((Action) o);
|
||||
}
|
||||
|
||||
if (item == null) {
|
||||
|
||||
Reference in New Issue
Block a user