Skip to content

merp - #2

Merged
ThatCuteOne merged 2 commits into
Modcafe:mainfrom
Fiaguhop137:main
Oct 31, 2026
Merged

ThatCuteOne merged 2 commits into
Modcafe:mainfrom
Fiaguhop137:main

Conversation

@Fiaguhop137

Copy link
Copy Markdown

No description provided.

@Fiaguhop137

Copy link
Copy Markdown
Author

that was so complicated i feel so proud of myself

for(int number=from;number<=to;++number){
int score;
if (blocked.contains(number) || (score = scoreboard.getOrCreatePlayerScore(ScoreHolder.forNameOnly((scoreName = RandomDialogAPI.getScoreName(prefix, number))), objective).get()) != 0) continue;
if(blocked.contains(number)){continue;}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would remove the {} around the continue statement after the if statement ,since it only runs one thing anyway. Mainly for code readablity

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same with the other 2 below btw :3

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i forgot you could do that

@ThatCuteOne ThatCuteOne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM <3

@ThatCuteOne
ThatCuteOne merged commit 67bb7aa into Modcafe:main Oct 31, 2026
@intensed-dev

Copy link
Copy Markdown
Member

What does this PR do?
I'd like to have some type of further details.

@ThatCuteOne

Copy link
Copy Markdown
Member

code readability and better null handeling

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants