From 98edacce96d7e0c91b4bd1639bccc8a35dfb76d7 Mon Sep 17 00:00:00 2001 From: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Date: Sun, 14 Jun 2026 01:36:00 -0400 Subject: [PATCH] Fixes runtime when breaking a moneybot without money (#96474) ## About The Pull Request holochip w/ 0 credits ## Why It's Good For The Game Runtime ## Changelog :cl: fix: fixed a runtime when breaking a moneybot without money /:cl: --- code/modules/wiremod/shell/moneybot.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/wiremod/shell/moneybot.dm b/code/modules/wiremod/shell/moneybot.dm index 2a6aa015fae..73abc89e2dc 100644 --- a/code/modules/wiremod/shell/moneybot.dm +++ b/code/modules/wiremod/shell/moneybot.dm @@ -16,7 +16,8 @@ var/locked = FALSE /obj/structure/money_bot/atom_deconstruct(disassembled = TRUE) - new /obj/item/holochip(drop_location(), stored_money) + if(stored_money) + new /obj/item/holochip(drop_location(), stored_money) /obj/structure/money_bot/proc/add_money(to_add) stored_money += to_add