Skip to content

Commit

Permalink
player/player.go: Remove problematic call to ReleaseItem on held slot…
Browse files Browse the repository at this point in the history
… update.
  • Loading branch information
JustTalDevelops committed Jul 20, 2022
1 parent 8809101 commit a038de7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/session/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,6 @@ func (s *Session) UpdateHeldSlot(slot int, expected item.Stack) error {
// Old slot was the same as new slot, so don't do anything.
return nil
}
// The user swapped changed held slots so stop using item right away.
s.c.ReleaseItem()

clientSideItem := expected
actual, _ := s.inv.Item(slot)
Expand Down

0 comments on commit a038de7

Please sign in to comment.