diff --git a/server/session/player.go b/server/session/player.go index 30d7a4a57..e9b555e1b 100644 --- a/server/session/player.go +++ b/server/session/player.go @@ -398,7 +398,7 @@ func (s *Session) SendGameMode(mode world.GameMode) { // sendAbilities sends the abilities of the Controllable entity of the session to the client. func (s *Session) sendAbilities() { - abilities := uint32(0) | protocol.AbilityMayFly | protocol.AbilityFlying | protocol.AbilityNoClip | protocol.AbilityInvulnerable | protocol.AbilityInstantBuild | protocol.AbilityBuild | protocol.AbilityMine | protocol.AbilityDoorsAndSwitches | protocol.AbilityOpenContainers | protocol.AbilityAttackPlayers | protocol.AbilityAttackMobs + abilities := uint32(0) | protocol.AbilityMayFly | protocol.AbilityFlying | protocol.AbilityNoClip | protocol.AbilityInvulnerable | protocol.AbilityInstantBuild | protocol.AbilityBuild | protocol.AbilityMine | protocol.AbilityDoorsAndSwitches | protocol.AbilityOpenContainers | protocol.AbilityAttackPlayers | protocol.AbilityAttackMobs | protocol.AbilityFlySpeed | protocol.AbilityWalkSpeed mode, abilitiesValues := s.c.GameMode(), uint32(0) if mode.AllowsFlying() {