Sharparam / cybersyn-combinator

Factorio mod adding a specialized combinator for the Project Cybersyn mod
https://mods.factorio.com/mod/cybersyn-combinator
Mozilla Public License 2.0
3 stars 4 forks source link

GUI doesn't close when deconstructed by drones #28

Closed Sharparam closed 11 months ago

Sharparam commented 1 year ago

Description

If a drone deconstructs the combinator, the GUI doesn't close as it should.

Reported by MrTigr on the Factorio mod portal here: https://mods.factorio.com/mod/cybersyn-combinator/discussion/6492110376f25bd97e7ce64e

Expected behaviour

GUI should close if a drone deconstructs the combinator.

Actual behaviour

The GUI stays open.

Steps to reproduce

  1. Construct a combinator.
  2. Open its GUI.
  3. Order a drone to deconstruct the combinator.

Context

No response

Possible fix

Might be as easy as checking another event, similar to how we handle closing when a player destroys a combinator.

Mod version

v0.5.0

Factorio version

Unknown

Operating system

Unknown

Sharparam commented 11 months ago

Turns out I was blind when looking at the screenshot and this was actually about the Cybernetic Combinator from Project Cybersyn.