Fix bug updating wrong item on drop

This commit is contained in:
2025-01-08 16:24:49 +00:00
parent 91f11e43c8
commit d436db2847
+1 -1
View File
@@ -27,7 +27,7 @@ doInvEffect = \case
ItemCopierUpdate -> copierItemUpdate
ItemReduceWarmTime -> \itm _ -> pointerToItem itm . itUse . heldDelay . warmTime
%~ (max 0 . subtract 1)
ItemSetWarmTime x -> \itm _ -> pointerToItem itm . itUse . heldDelay . warmTime
ItemSetWarmTime x -> \itm _ -> pointerToItemID (_itID itm) . itUse . heldDelay . warmTime
.~ x
copierItemUpdate :: Item -> Creature -> World -> World