Skip to content

break keyword returns to the first loop in a given function #112

Description

@jaredlll08

Transferring from: CraftTweaker/ZenScript#48

Refer to below images:

image

image

image

It seems like the break keyword jumps to the end of the first for statement in the function, as rand gets reassigned and "SOW" prints again. This currently bricks the game as it runs an infinite loop (this should aslo be an enhancement as zs should detect infinite loops and, if anything, just break and log the loop and cause unintended behavior--instead of freezing the game)

Edit: ignore the youtube link that was for my reference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbytecodeAll issues that relate to the generation of Java Bytecode

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions