mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
Fixes chem master replace beaker runtime (#76062)
## About The Pull Request I think it was rather silly to put this call in this proc, but I'm not about to audit it `new_beaker` can be `null` if this proc is being called to drop the current beaker, so this needed a sanity check ## Why It's Good For The Game Runtime ## Changelog 🆑 Melbert fix: Runtime from ejecting beakers from a chem-master /🆑
This commit is contained in:
@@ -201,7 +201,7 @@ GLOBAL_LIST_INIT(chem_master_containers, list(
|
||||
|
||||
/// Insert new beaker and/or eject the inserted one
|
||||
/obj/machinery/chem_master/proc/replace_beaker(mob/living/user, obj/item/reagent_containers/new_beaker)
|
||||
if(!user?.transferItemToLoc(new_beaker, src))
|
||||
if(new_beaker && user && !user.transferItemToLoc(new_beaker, src))
|
||||
return FALSE
|
||||
if(beaker)
|
||||
try_put_in_hand(beaker, user)
|
||||
|
||||
Reference in New Issue
Block a user