mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
Fix vending machines not updating their power when moved (#10714)
This commit is contained in:
@@ -318,6 +318,7 @@
|
||||
if(!src) return
|
||||
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
|
||||
anchored = !anchored
|
||||
power_change()
|
||||
return
|
||||
|
||||
else if(istype(W,/obj/item/vending_refill))
|
||||
@@ -779,6 +780,8 @@
|
||||
|
||||
/obj/machinery/vending/power_change()
|
||||
..()
|
||||
if(!anchored)
|
||||
stat |= NOPOWER
|
||||
if(stat & BROKEN)
|
||||
icon_state = "[initial(icon_state)]-broken"
|
||||
cut_overlays()
|
||||
|
||||
6
html/changelogs/johnwildkins-vendpower.yml
Normal file
6
html/changelogs/johnwildkins-vendpower.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
author: JohnWildkins
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Unanchoring and moving vending machines should now properly update their powered status."
|
||||
Reference in New Issue
Block a user