Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaredlll08 opened this issue Jan 12, 2023 · 0 comments
Open

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

jaredlll08 opened this issue Jan 12, 2023 · 0 comments
Labels
bug Something isn't working bytecode All issues that relate to the generation of Java Bytecode
Milestone

Comments

@jaredlll08
Copy link
Member

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.

@kindlich kindlich added this to the Refactor milestone Jun 2, 2024
@kindlich kindlich added bug Something isn't working bytecode All issues that relate to the generation of Java Bytecode labels Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bytecode All issues that relate to the generation of Java Bytecode
Projects
None yet
Development

No branches or pull requests

2 participants