From 9a690a41df9842a599fed6e58fbed31a40c0d091 Mon Sep 17 00:00:00 2001 From: Heroman Date: Wed, 11 Aug 2021 07:17:21 +1000 Subject: [PATCH] Fixes in split instead of input --- code/game/objects/items/stacks/stack.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index fe3221b06b5..b014c1810fe 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -302,6 +302,7 @@ if(uses_charge) return null + tamount = round(tamount) var/transfer = max(min(tamount, src.amount, initial(max_amount)), 0) var/orig_amount = src.amount @@ -354,7 +355,6 @@ /obj/item/stack/attack_hand(mob/user as mob) if (user.get_inactive_hand() == src) var/N = input(usr, "How many stacks of [src] would you like to split off? There are currently [amount].", "Split stacks", 1) as num|null - N = round(N) if(N) var/obj/item/stack/F = src.split(N) if (F)