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

Fix powerbanks losing all power when placed when using technic mod. #9

Closed
wants to merge 2 commits into from

Conversation

olivia-may
Copy link

Powerbanks would charge in a battery, then when you go place them, they frustratingly would reset to 0 power. This was because the old set_charge and get_charge functions (the ones used for technic, NOT technic plus) would always return 0. I fixed this by copying the default_set_charge and default_get_charge functions from technic's technic/machines/register/battery_box.lua file. Now it works as intended.

I also added a second, optional commit, that makes the "Remaining Charge: ..." part of the formspec more easily visible. Sometimes the number gets cut off, especially on smaller screens.

@OgelGames OgelGames closed this in 2c60777 Jul 8, 2024
@OgelGames
Copy link
Owner

Sorry for the delay on this, it should be fixed now.

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 this pull request may close these issues.

2 participants