Update code/game/objects/items/stacks/stack.dm

This commit is contained in:
SandPoot
2024-01-03 18:51:09 -03:00
committed by GitHub
parent b82dd9d7a5
commit e5146066eb
+1 -1
View File
@@ -532,7 +532,7 @@
if(stackmaterial == "Custom")
stackmaterial = round(input(user, "How many sheets do you wish to take out of this stack?\nMax: [max]") as null|num)
stackmaterial = isnum(stackmaterial) ? stackmaterial : text2num(stackmaterial)
stackmaterial = min(max, stackmaterial)
stackmaterial = min(get_amount(), stackmaterial)
if(stackmaterial == null || stackmaterial <= 0 || !user.canUseTopic(src, BE_CLOSE, TRUE, FALSE)) //, !iscyborg(user)
return
split_stack(user, stackmaterial)