mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] [NO GBP] Chem Heater with empty buffers can be refilled again [MDB IGNORE] (#26109)
* [NO GBP] Chem Heater with empty buffers can be refilled again (#80934) ## About The Pull Request - Fixes #80933 Should check if beaker has the buffer and not the machine ## Changelog 🆑 fix: chem heater with empty buffers can be refilled again /🆑 * [NO GBP] Chem Heater with empty buffers can be refilled again --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
@@ -366,12 +366,11 @@
|
||||
|
||||
//trying to absorb buffer from currently inserted beaker
|
||||
if(volume < 0)
|
||||
var/datum/reagent/buffer_reagent = reagents.has_reagent(buffer_type)
|
||||
if(!buffer_reagent)
|
||||
if(!beaker.reagents.has_reagent(buffer_type))
|
||||
var/name = initial(buffer_type.name)
|
||||
say("Unable to find [name] in beaker to draw from! Please insert a beaker containing [name].")
|
||||
return FALSE
|
||||
beaker.reagents.trans_to(src, (reagents.maximum_volume / 2) - buffer_reagent.volume, target_id = buffer_type)
|
||||
beaker.reagents.trans_to(src, (reagents.maximum_volume / 2) - reagents.get_reagent_amount(buffer_type), target_id = buffer_type)
|
||||
return TRUE
|
||||
|
||||
//trying to inject buffer into currently inserted beaker
|
||||
|
||||
Reference in New Issue
Block a user