Skip to content

Don't enable fly mode on login when player is in water#6490

Merged
JRoy merged 1 commit intoEssentialsX:2.xfrom
JRoy:fix/fly-safelogin-swimming
Apr 5, 2026
Merged

Don't enable fly mode on login when player is in water#6490
JRoy merged 1 commit intoEssentialsX:2.xfrom
JRoy:fix/fly-safelogin-swimming

Conversation

@JRoy
Copy link
Copy Markdown
Member

@JRoy JRoy commented Apr 5, 2026

Fixes #6198

shouldFly() treats water as unsafe blocks, which incorrectly
triggered fly mode for players logging in while swimming. Guard
the isInWater() call behind a version check since the method was
added in 1.17.

Fixes EssentialsX#6198
@JRoy JRoy added this pull request to the merge queue Apr 5, 2026
Merged via the queue into EssentialsX:2.x with commit 86621cd Apr 5, 2026
1 check passed
@JRoy JRoy deleted the fix/fly-safelogin-swimming branch April 5, 2026 17:44
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.

Swimming counts as flying for safe fly login

2 participants