Skip to content

Commit

Permalink
Update item_behaviour.go
Browse files Browse the repository at this point in the history
  • Loading branch information
RestartFU committed May 29, 2024
1 parent 3949ec6 commit 9d698d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/entity/item_behaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (i *ItemBehaviour) Tick(e *Ent) *Movement {
if ok && !bl.Powered {
_, err := bl.Inventory().AddItem(i.i.Grow(-i.i.Count() + 1))
if err != nil {
// We couldn't add any of the item to the inventory, so we continue to the next item entity.
// We couldn't add any of the item to the inventory, so we ignore it.
return i.passive.Tick(e)
}

Expand Down

0 comments on commit 9d698d7

Please sign in to comment.