Skip to content

Commit

Permalink
session/handler_player_action.go: Release item on StopItemUseOn action
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Nov 25, 2024
1 parent 8d4e5ac commit e0d705d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/session/handler_player_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ func handlePlayerAction(action int32, face int32, pos protocol.BlockPos, entityR
return nil
}
c.ContinueBreaking(cube.Face(face))
case protocol.PlayerActionStartItemUseOn, protocol.PlayerActionStopItemUseOn:
case protocol.PlayerActionStartItemUseOn:
// TODO: Properly utilize these actions.
case protocol.PlayerActionStopItemUseOn:
c.ReleaseItem()
case protocol.PlayerActionStartBuildingBlock:
// Don't do anything for this action.
case protocol.PlayerActionCreativePlayerDestroyBlock:
Expand Down

0 comments on commit e0d705d

Please sign in to comment.