Fixes cooker toggle message (#11798)

This commit is contained in:
MarinaGryphon
2021-05-01 16:48:27 +02:00
committed by GitHub
parent edc5977d3e
commit 32b2e0a484
2 changed files with 42 additions and 1 deletions
@@ -109,7 +109,7 @@
set_temp = text2num(desired_temp) + T0C
to_chat(user, SPAN_NOTICE("You set [src] to [round(set_temp-T0C)]C."))
stat &= ~POWEROFF
use_power = !(stat & POWEROFF) && use_power
use_power = !(stat & POWEROFF) // will be updated again after heat_up
if(wasoff != (stat & POWEROFF))
activation_message(user)
playsound(src, 'sound/machines/click.ogg', 40, 1)