Fixes filling smoke machines with pills (#32140)
Fixes #32102 Checks for the OPENCONTAINER flag after seeing if the object being used to fill the smoke machine has reagents in it
This commit is contained in:
committed by
CitadelStationBot
parent
2715fa9953
commit
e486038c2e
@@ -66,7 +66,7 @@
|
||||
|
||||
/obj/machinery/smoke_machine/attackby(obj/item/I, mob/user, params)
|
||||
add_fingerprint(user)
|
||||
if(istype(I, /obj/item/reagent_containers))
|
||||
if(istype(I, /obj/item/reagent_containers) && I.is_open_container())
|
||||
var/obj/item/reagent_containers/RC = I
|
||||
var/units = RC.reagents.trans_to(src, RC.amount_per_transfer_from_this)
|
||||
if(units)
|
||||
|
||||
Reference in New Issue
Block a user