Conveyor Belt appearance when power is off (#2762)

* Conveyor Belt appearance when power is off

If the conveyor belt is running and the power turns off the belt stops pushing things but the animation continues. This changes it so the animation stops if there is no power and resumes when it returns.

* Change from using Initialize, to OnAdd and OnRemove
This commit is contained in:
daniel-cr
2020-12-18 01:31:58 -06:00
committed by GitHub
parent dc07718a7c
commit a679e691c2
2 changed files with 40 additions and 7 deletions

View File

@@ -27,6 +27,7 @@
drawdepth: FloorObjects
- type: SignalReceiver
maxTransmitters: 1
- type: PowerReceiver
- type: Conveyor
- type: Appearance
visuals:
@@ -34,7 +35,6 @@
state_running: conveyor_started_cw
state_stopped: conveyor_stopped_cw
state_reversed: conveyor_started_cw_r
- type: PowerReceiver
- type: Construction
graph: ConveyorGraph
node: entity