Commit 0f31b4b
committed
Don't enable fly mode on login when player is in water
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 #61981 parent 218e004 commit 0f31b4b
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
| 509 | + | |
509 | 510 | | |
510 | 511 | | |
511 | 512 | | |
| |||
0 commit comments