Fixes runtime in power hammer (#29139)

This commit is contained in:
PollardTheDragon
2025-04-28 16:18:07 +00:00
committed by GitHub
parent bd1ff7e209
commit 42099d95b1
@@ -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, "<span class='notice'>There is no component in the machine.</span>")
return
if(!working_component.heat)
to_chat(user, "<span class='notice'>[working_component] is too cold to properly shape.</span>")
return