mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 07:41:16 +01:00
Showers no longer runtime when you shower with an empty hand (#42410)
held items actually contains "null" entries by default using just var/I gets these null items and then tries to wash_obj a null causing a runtime Specifying /obj/item will stop the nulls being iterated
This commit is contained in:
@@ -131,7 +131,8 @@
|
||||
if(iscarbon(L))
|
||||
var/mob/living/carbon/M = L
|
||||
. = TRUE
|
||||
for(var/I in M.held_items)
|
||||
|
||||
for(var/obj/item/I in M.held_items)
|
||||
wash_obj(I)
|
||||
|
||||
if(M.back && wash_obj(M.back))
|
||||
|
||||
Reference in New Issue
Block a user