brosseaualex / Hydrocraft

Hydrocraft Mod for Project Zomboid
37 stars 20 forks source link

[pz41-beta1] unplugging solar generator is not removing power supply/grid #71

Open ttr opened 4 years ago

ttr commented 4 years ago

Hi, in PZ41 (and possibly in pz40) when solar generator is disconnected / unplugged, electricity grid is not updated so all devices still have power (until game reload).

This looks to be missing definition of 'NewGenerator:setSurroundingElectricity();' in https://github.com/DemolitionDerby/Hydrocraft/blob/c39a8dad2f0f2b02a5558b529e46467d776615d2/media/lua/client/Solar/solar.lua#L14 (after SetActivated(false)) as adding it did solve this.

ttr commented 4 years ago

https://github.com/DemolitionDerby/Hydrocraft/pull/72 for this and other