From 3b1e6ad01a1819635afa313ae0dbb44663143ce7 Mon Sep 17 00:00:00 2001 From: Purpose Date: Sun, 7 Oct 2018 22:24:10 +0100 Subject: [PATCH] no no no no --- code/modules/reagents/chemistry/holder.dm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/code/modules/reagents/chemistry/holder.dm b/code/modules/reagents/chemistry/holder.dm index 73a591f9ddb..b0c511420f5 100644 --- a/code/modules/reagents/chemistry/holder.dm +++ b/code/modules/reagents/chemistry/holder.dm @@ -455,7 +455,8 @@ var/const/INGEST = 2 reagent_list -= A qdel(A) update_total() - my_atom.on_reagent_change() + if(my_atom) + my_atom.on_reagent_change() return 0 @@ -537,7 +538,8 @@ var/const/INGEST = 2 if(R.id == reagent) R.volume += amount update_total() - my_atom.on_reagent_change() + if(my_atom) + my_atom.on_reagent_change() R.on_merge(data) if(!no_react) handle_reactions() @@ -555,7 +557,8 @@ var/const/INGEST = 2 R.on_new(data) update_total() - my_atom.on_reagent_change() + if(my_atom) + my_atom.on_reagent_change() if(!no_react) handle_reactions() return 0 @@ -578,7 +581,8 @@ var/const/INGEST = 2 update_total() if(!safety)//So it does not handle reactions when it need not to handle_reactions() - my_atom.on_reagent_change() + if(my_atom) + my_atom.on_reagent_change() return 0 return 1 @@ -716,4 +720,4 @@ atom/proc/create_reagents(max_vol) QDEL_LIST(reagent_list) reagent_list = null if(my_atom && my_atom.reagents == src) - my_atom.reagents = null \ No newline at end of file + my_atom.reagents = null