mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-30 16:11:43 +00:00
Issue #501: GotoFrame2 fix, telltarget misc
This commit is contained in:
@@ -76,7 +76,7 @@ public class GotoFrame2ActionItem extends ActionItem {
|
||||
@Override
|
||||
public List<GraphSourceItem> toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {
|
||||
if (!sceneBiasFlag && (frame instanceof DirectValueActionItem) && (((DirectValueActionItem) frame).value instanceof Long)) {
|
||||
return toSourceMerge(localData, generator, frame, new ActionGotoFrame((int) ((long) (Long) ((DirectValueActionItem) frame).value) - 1), playFlag ? new ActionPlay() : null);
|
||||
return toSourceMerge(localData, generator, new ActionGotoFrame((int) ((long) (Long) ((DirectValueActionItem) frame).value) - 1), playFlag ? new ActionPlay() : null);
|
||||
} else {
|
||||
return toSourceMerge(localData, generator, frame, new ActionGotoFrame2(playFlag, sceneBiasFlag, sceneBias));
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class TellTargetActionItem extends ActionItem {
|
||||
writer.append("{").newLine();
|
||||
writer.indent();
|
||||
for (GraphTargetItem ti : commands) {
|
||||
ti.toString(writer, localData).newLine();
|
||||
ti.toStringSemicoloned(writer, localData).newLine();
|
||||
}
|
||||
writer.unindent();
|
||||
return writer.append("}");
|
||||
@@ -80,6 +80,11 @@ public class TellTargetActionItem extends ActionItem {
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean needsSemicolon() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasReturnValue() {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user