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
Telsa Tower should establish a connection to the Tesla Coil Cover in range.
The Reality
When you place a tesla tower (or the server restart), it does not establish a connection to the Tesla Coil Cover in range. However, if you first place the tower then place the cover, everything is fine.
Not connected.
Remove the cover...
and replace it.
Your Proposal
Caused by:
Tesla tower will try to generateTeslaNodeMap onFirstTick. This method will traversal every ITeslaConnectableSimple that's stored in map once and calculate distance (getTeslaPosition) between the tesla tower and the cover. However, getTeslaPosition() returns posTop, which was initialized on checkMachine(). That method is definitely called after onFirstTick(), and before that it's just (0,0,0). Every distance is calculated by the cover's position and (0,0,0). This happens both when the tower is placed and when the server is started. The latter is fatal for server players. BTW, another problem related to this is that when you change the distance in tesla tower's GUI, it will not try connecting to the cover farther because the farther cover will only be connected once onFirstTick and it failed on distance check.
Final Checklist
I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the bug still exists will prompt us to investigate and reopen it once we confirm your report.
I can reproduce this problem consistently by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
I have asked other people and they confirm they also have this problem by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
The text was updated successfully, but these errors were encountered:
Your GTNH Discord Username
real_silver_moon
Your Pack Version
2.6.0
Your Server
SP
Java Version
Java 8
Type of Server
Single Player
Your Expectation
Telsa Tower should establish a connection to the Tesla Coil Cover in range.
The Reality
When you place a tesla tower (or the server restart), it does not establish a connection to the Tesla Coil Cover in range. However, if you first place the tower then place the cover, everything is fine.
Not connected.
Remove the cover...
and replace it.
Your Proposal
Caused by:
Tesla tower will try to generateTeslaNodeMap onFirstTick. This method will traversal every ITeslaConnectableSimple that's stored in map once and calculate distance (getTeslaPosition) between the tesla tower and the cover. However, getTeslaPosition() returns posTop, which was initialized on checkMachine(). That method is definitely called after onFirstTick(), and before that it's just (0,0,0). Every distance is calculated by the cover's position and (0,0,0). This happens both when the tower is placed and when the server is started. The latter is fatal for server players.
BTW, another problem related to this is that when you change the distance in tesla tower's GUI, it will not try connecting to the cover farther because the farther cover will only be connected once onFirstTick and it failed on distance check.
Final Checklist
The text was updated successfully, but these errors were encountered: