Closed HyCraftHD closed 4 years ago
Hi, I tried to look at your code, but since I'm still inexperienced, I can't understand much of it. If you want to help me it would be great.
No problem. I make a pr soon.
Done. Your build system seems to bug though
Thanks fixed with #15
The value wrappes around at 32000 into the minus values and up again.
This is due to the trackInt method that casts the integer to a short value: https://github.com/Edivad99/SolarGeneration/blob/38bb3a703bde2f2a82dda4bf4da4cbd1853c2ddd/src/main/java/edivad/solargeneration/blocks/containers/SolarPanelContainer.java#L26-L39
To fix this you must use custom packets like this custom tracker here: https://github.com/MC-U-Team/U-Team-Core/blob/153fd57f88a0d2d71a8f69072f86dc57a89970de/src/main/java/info/u_team/u_team_core/container/UContainer.java#L97-L103