Fixes Light Replacer Bug (#11997)

This commit is contained in:
Doxxmedearly
2021-06-03 14:02:02 -03:00
committed by GitHub
parent 3ddf0f943f
commit 035b0cf045
2 changed files with 8 additions and 0 deletions
@@ -137,6 +137,8 @@
return
if (do_after(user, load_interval, needhand = 0) && boxstartloc == box.loc && ourstartloc == src.loc)
if(uses >= max_uses) //catches loading from multiple boxes
break
uses++
to_chat(user, "<span class='notice'>Light loaded: [uses]/[max_uses]</span>")
playsound(src.loc, 'sound/machines/click.ogg', 20, 1)