Skip to content

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

Open

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

  1. added a commit that references this issue on Nov 21, 2023
    1db5440
  2. added this to the Refactor milestone on Jun 2, 2024
  3. added
    bugSomething isn't working
    bytecodeAll issues that relate to the generation of Java Bytecode
    on Jun 22, 2024
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