From 42099d95b1d3f271383e91ef8f9507c7581b57a0 Mon Sep 17 00:00:00 2001
From: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Date: Mon, 28 Apr 2025 12:18:07 -0400
Subject: [PATCH] Fixes runtime in power hammer (#29139)
---
code/modules/smithing/machinery/power_hammer.dm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/code/modules/smithing/machinery/power_hammer.dm b/code/modules/smithing/machinery/power_hammer.dm
index 1fc5ba5c847..7bc9e78e5f8 100644
--- a/code/modules/smithing/machinery/power_hammer.dm
+++ b/code/modules/smithing/machinery/power_hammer.dm
@@ -47,6 +47,9 @@
operation_time = max(ROUND_UP(initial(operation_time) * (1.3 - operation_mult)), 2)
/obj/machinery/smithing/power_hammer/operate(loops, mob/living/user)
+ if(!working_component)
+ to_chat(user, "There is no component in the machine.")
+ return
if(!working_component.heat)
to_chat(user, "[working_component] is too cold to properly shape.")
return