From 0af59bdc442a7440fea967449726f0dbb2daa68d Mon Sep 17 00:00:00 2001 From: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Date: Wed, 10 Jan 2024 00:47:08 +0530 Subject: [PATCH] Ejecting cells from microwaves via ctrl click requires proximity. (#80824) ## About The Pull Request - Fixes #80806 Was a problem with microwaves in general & not just with the wireless version. ## Changelog :cl: fix: ejecting cells from microwaves via ctrl click now requires player proximity. /:cl: --- code/modules/food_and_drinks/machinery/microwave.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/food_and_drinks/machinery/microwave.dm b/code/modules/food_and_drinks/machinery/microwave.dm index 0471f5e92ef..c4cc6d378e3 100644 --- a/code/modules/food_and_drinks/machinery/microwave.dm +++ b/code/modules/food_and_drinks/machinery/microwave.dm @@ -486,7 +486,7 @@ /obj/machinery/microwave/CtrlClick(mob/user) . = ..() - if(cell_powered && !isnull(cell) && anchored) + if(user.can_perform_action(src) && cell_powered && !isnull(cell) && anchored) user.put_in_hands(cell) balloon_alert(user, "removed cell") cell = null