You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PowerManager, each conductive node is added, represented by coordinates and powerLevel.
So it can happen that there are duplicate entries when a zone and a building on top is added.
For all buildings besides power plants, power production is 0. But should be set to 0.
We should change the way nodes are added.
When something is placed or demolish, check if the mapNode.isConductive() flag is still true, and add or remove it. So we won't have duplicates and don't have to care about what is on the node.
When we calculate power levels, we can then check if the buildings layer is occupied and use power usage -1 then
The text was updated successfully, but these errors were encountered:
In PowerManager, each conductive node is added, represented by coordinates and powerLevel.
So it can happen that there are duplicate entries when a zone and a building on top is added.
For all buildings besides power plants, power production is 0. But should be set to 0.
We should change the way nodes are added.
When something is placed or demolish, check if the mapNode.isConductive() flag is still true, and add or remove it. So we won't have duplicates and don't have to care about what is on the node.
When we calculate power levels, we can then check if the buildings layer is occupied and use power usage -1 then
The text was updated successfully, but these errors were encountered: