From 9224a407fdffd2b3e37d46ee0b6b004bbc342007 Mon Sep 17 00:00:00 2001 From: dearmochi Date: Sat, 28 Nov 2020 23:04:35 +0100 Subject: [PATCH] Fixes vending machines eating coins (#15008) --- code/game/machinery/vending.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 7503f43cfa4..e00848374f1 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -283,11 +283,14 @@ if(!premium.len) to_chat(user, "[src] does not accept coins.") return + if(coin) + to_chat(user, "There is already a coin in this machine!") + return if(!user.drop_item()) return I.forceMove(src) coin = I - to_chat(user, "You insert the [I] into the [src]") + to_chat(user, "You insert [I] into the [src]") SStgui.update_uis(src) return if(refill_canister && istype(I, refill_canister))