Open Soaryn opened 1 month ago
Seemingly, adding the following after the existing code in ServerGamePacketListenerImpl
in handlePlayerAbilities
might be enough, at least from testing I've done.
if (packet.isFlying() != this.player.getAbilities().flying)
player.onUpdateAbilities();
Minecraft Version:
1.21.x
NeoForge Version:
21.1.6
Steps to Reproduce:
flying
andmayFly
; however, because the client seems to getmayFly
correctly turned off,flying
is still followed through to be true. This causes the player to have flight, but also not be able to disengage said flight until they land potentially killing their character.An example mod (if needed) to use is Mekanism with the gravity module in the chest piece. Spam space and the flight toggle (which is typically
G
I believe). You should wind up in a state whereflying
is true andmayFly
is false on the serverDescription of issue: This might be a timing issue, but the client is setting the
flying
to true, AFTER the server has turned everything off.