Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative Energy on Mining Gadget never charges in the Charging Station. #17

Open
AraHaan opened this issue Dec 22, 2024 · 0 comments · May be fixed by #18
Open

Negative Energy on Mining Gadget never charges in the Charging Station. #17

AraHaan opened this issue Dec 22, 2024 · 0 comments · May be fixed by #18

Comments

@AraHaan
Copy link

AraHaan commented Dec 22, 2024

Originally reported here: Direwolf20-MC/MiningGadgets#254

The issue is this line does not check first if the charge value is a negative value and so never charges it: https://github.com/Direwolf20-MC/ChargingGadgets/blob/master/src/main/java/com/direwolf20/charginggadgets/blocks/chargingstation/ChargingStationTile.java#L109

Possible solutions:

  • setting the negative value to 0
  • absolute value the negative value to convert it to positive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant