Fix smoke machine runtime (#33697)

* Fix smoke machine runtime

* Woops.
This commit is contained in:
MoreRobustThanYou
2017-12-21 01:41:01 -05:00
committed by CitadelStationBot
parent 408cf32ddc
commit 39ecfd64db

View File

@@ -46,6 +46,8 @@
var/new_volume = REAGENTS_BASE_VOLUME
for(var/obj/item/stock_parts/matter_bin/B in component_parts)
new_volume += REAGENTS_BASE_VOLUME * B.rating
if(!reagents)
create_reagents(new_volume)
reagents.maximum_volume = new_volume
if(new_volume < reagents.total_volume)
reagents.reaction(loc, TOUCH) // if someone manages to downgrade it without deconstructing