Skip to content

Commit

Permalink
wip!
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Jun 10, 2024
1 parent af7deca commit 2774577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/session/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2774577

Please sign in to comment.