minetest-mods / technic

Technic mod for Minetest
Other
146 stars 155 forks source link

Battery box does not see network related to issue #614 #615

Closed ulamthelucky closed 1 year ago

ulamthelucky commented 1 year ago

Issue #614 is fixed, however found a weird reproducible anomaly that is related.

Build a LV network (only tested LV) with a power source (such as solar array), a switching station. Then extend the LV cable out a few blocks out, or simply around a 90 degree bend. and put the battery box on the LV wire at the end. It is not registered on the network.

Place a 2nd battery box next to the switching station or the solar array, and suddenly both battery boxes 'see' the network.

First battery box placed:

image

After placing a 2nd battery box:

image

Can even place many battery boxes, but if none are next to something they are not registered.

image

But, add just a single anything else such as a solar array next to any 1 of the un registered boxes, and suddenly all are registered. image

One can even remove the node that (in this example the 2nd solar array) and the boxes remain registered. Bug only occurs on initial placement of the battery box.

Steps to reproduce this issue

SmallJoker commented 1 year ago

I thought you said it worked....

Actually this is my bad. Forgot to update the other function too (the duplication should not exist in first place). 21e0444

ulamthelucky commented 1 year ago

Works now. Thanks!