From 110e4142e6fdb5b6d1542686759879aa373ed810 Mon Sep 17 00:00:00 2001
From: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Date: Thu, 17 Jul 2025 16:08:01 -0400
Subject: [PATCH] Fixes Kinetic Assembler Runtime (#29751)
---
code/modules/smithing/machinery/kinetic_assembler.dm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/code/modules/smithing/machinery/kinetic_assembler.dm b/code/modules/smithing/machinery/kinetic_assembler.dm
index eea5baeded6..9711104df68 100644
--- a/code/modules/smithing/machinery/kinetic_assembler.dm
+++ b/code/modules/smithing/machinery/kinetic_assembler.dm
@@ -88,6 +88,9 @@
return
switch(removed)
if("Primary")
+ if(!primary)
+ to_chat(user, "There is no primary component to remove.")
+ return
to_chat(user, "You remove [primary] from the primary component slot of [src].")
if(primary.burn_check(user))
primary.burn_user(user)
@@ -98,6 +101,9 @@
primary = null
return
if("Secondary")
+ if(!secondary)
+ to_chat(user, "There is no secondary component to remove.")
+ return
to_chat(user, "You remove [secondary] from the secondary component slot of [src].")
if(secondary.burn_check(user))
secondary.burn_user(user)
@@ -108,6 +114,9 @@
secondary = null
return
if("Trim")
+ if(!trim)
+ to_chat(user, "There is no trim component to remove.")
+ return
to_chat(user, "You remove [trim] from the trim component slot of [src].")
if(trim.burn_check(user))
trim.burn_user(user)