Skip to content

Finish exceptionCaught in velocity's PacketEventsEncoder - #1536

Open
ShadowOfHeaven-Me wants to merge 8 commits into
retrooper:2.0from
ShadowOfHeaven-Me:2.0
Open

Finish exceptionCaught in velocity's PacketEventsEncoder#1536
ShadowOfHeaven-Me wants to merge 8 commits into
retrooper:2.0from
ShadowOfHeaven-Me:2.0

Conversation

@ShadowOfHeaven-Me

Copy link
Copy Markdown
Contributor

Did not account for PacketEvents.getAPI().getSettings()

@booky10 booky10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also missing in PacketEventsDecoder (and argueably more important there)

if (didWeCauseThis
&& (user == null || user.getEncoderState() != ConnectionState.HANDSHAKING)) {
if (PacketEvents.getAPI().getSettings().isFullStackTraceEnabled()) {
cause.printStackTrace();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should be logged using the LogManager

if (PacketEvents.getAPI().getSettings().isFullStackTraceEnabled()) {
cause.printStackTrace();
} else {
PacketEvents.getAPI().getLogManager().warn(cause.getMessage());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Make sure to include some info about the user which caused this here (also applies to above)

throw new AssertionError();
}
}
} No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Missing final newline

ShadowOfHeaven-Me and others added 6 commits June 28, 2026 14:12
…pl/netty/util/WrapperUtil.java

Co-authored-by: booky <booky@booky.dev>
…pl/netty/util/WrapperUtil.java

Co-authored-by: booky <booky@booky.dev>
…rs/PacketEventsEncoder.java

Co-authored-by: booky <booky@booky.dev>
…rs/PacketEventsEncoder.java

Co-authored-by: booky <booky@booky.dev>
…rs/PacketEventsEncoder.java

Co-authored-by: booky <booky@booky.dev>
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.

2 participants