Remove inventory selection on item drop/pickup
This commit is contained in:
@@ -42,9 +42,12 @@ tryPutItemInInv cid flit w = case maybeInvSlot of
|
||||
-- second for the root/selected item bools
|
||||
& cWorld . lWorld %~ crUpdateItemLocations cid
|
||||
& setInvPosFromSS
|
||||
& updateselectionextra
|
||||
& cWorld . lWorld %~ crUpdateItemLocations cid
|
||||
)
|
||||
where
|
||||
updateselectionextra | cid == 0 = hud . hudElement . diSelectionExtra .~ 0
|
||||
| otherwise = id
|
||||
it = _flIt flit
|
||||
maybeInvSlot = checkInvSlotsYou it w
|
||||
-- not sure if the following is necessary
|
||||
|
||||
Reference in New Issue
Block a user