mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Fixes chemical cartridge splashing
- Fixes #11853 - Attempting to transfer reagents into the cartridge when it is closed will no longer splash the reagents.
This commit is contained in:
@@ -135,7 +135,15 @@
|
||||
return 1
|
||||
|
||||
/obj/item/weapon/reagent_containers/proc/standard_pour_into(var/mob/user, var/atom/target) // This goes into afterattack and yes, it's atom-level
|
||||
if(!target.is_open_container() || !target.reagents)
|
||||
if(!target.reagents)
|
||||
return 0
|
||||
|
||||
// Ensure we don't splash beakers and similar containers.
|
||||
if(!target.is_open_container() && istype(target, /obj/item/weapon/reagent_containers))
|
||||
user << "<span class='notice'>\The [target] is closed.</span>"
|
||||
return 1
|
||||
// Otherwise don't care about splashing.
|
||||
else if(!target.is_open_container())
|
||||
return 0
|
||||
|
||||
if(!reagents || !reagents.total_volume)
|
||||
|
||||
Reference in New Issue
Block a user