Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Make PSS stop pulling input power when it's full. #687

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

antihutka
Copy link
Contributor

Currently PSS voids 1% of stored power whenever it fills up, which causes it to always draw power as quickly as it can. This is caused by a missing check in drawEnergyFromHatch, which charges the PSS over its capacity, which then triggers the overcharge check in onRunningTick. This change prevents the PSS from pulling power if it would cause it to overcharge.

@Dream-Master Dream-Master requested review from a team July 11, 2023 17:16
@Dream-Master Dream-Master merged commit 2baadeb into GTNewHorizons:master Jul 11, 2023
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants