Skip to content

Commit

Permalink
Fix issue with splitting stack when amount is less
Browse files Browse the repository at this point in the history
than or equal to 1
  • Loading branch information
Zonespace27 committed Nov 19, 2023
1 parent 145da65 commit 2042d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ Also change the icon to reflect the amount of sheets, if possible.*/
if(mods["alt"])
if(!CAN_PICKUP(user, src))
return
if(amount <= 1)
return
var/desired = tgui_input_number(user, "How much would you like to split off from this stack?", "How much?", 1, amount-1, 1)
if(!desired)
return
Expand Down

0 comments on commit 2042d7f

Please sign in to comment.