Replacing capacitor with a lower tier one causes energy to go above the maximum #1106

Open
opened 2025-07-09 12:18:23 +00:00 by cqundefine · 1 comment
cqundefine commented 2025-07-09 12:18:23 +00:00 (Migrated from github.com)

Is there an existing issue for this?

  • I did not find any existing issues.

Current Behavior

If you charge a machine with a higher tier capacitor, and then replace the capacitor with a lower tier one the charge state stays above maximum and the energy bar goes off limit.

Image

Expected Behavior

The energy should be capped at what the new maximum is.

How to Test

  1. Place any machine (e.g. Alloy Smelter)
  2. Put an octadic capacitor in it
  3. Fully charge the machine
  4. Replace the capacitor with a double layer capacitor
  5. The current energy will exceed the maximum

Local Environment

- **Operating System**: Linux
- **Java version**: 21.0.3
- **Minecraft Version**: 1.12.1
- **Version**: 7.1.8-alpha
- **Other Mods**: FTB Evolution modpack

Any Additional Information?

No response

### Is there an existing issue for this? - [x] I did not find any existing issues. ### Current Behavior If you charge a machine with a higher tier capacitor, and then replace the capacitor with a lower tier one the charge state stays above maximum and the energy bar goes off limit. <img width="389" height="249" alt="Image" src="https://github.com/user-attachments/assets/c27f4a46-6af4-4cc5-b15b-9566c92739d7" /> ### Expected Behavior The energy should be capped at what the new maximum is. ### How to Test 1. Place any machine (e.g. Alloy Smelter) 2. Put an octadic capacitor in it 3. Fully charge the machine 4. Replace the capacitor with a double layer capacitor 5. The current energy will exceed the maximum ### Local Environment ```markdown - **Operating System**: Linux - **Java version**: 21.0.3 - **Minecraft Version**: 1.12.1 - **Version**: 7.1.8-alpha - **Other Mods**: FTB Evolution modpack ``` ### Any Additional Information? _No response_
mamaruo commented 2025-07-10 10:57:01 +00:00 (Migrated from github.com)

Can be reproduced in enderio-7.1.8.654-nightly+84bfe2477.

Image
Can be reproduced in enderio-7.1.8.654-nightly+84bfe2477. <img width="361" height="544" alt="Image" src="https://github.com/user-attachments/assets/19ad3f78-dc93-425b-9ab9-48c08df6319e" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Team-EnderIO/EnderIO#1106
No description provided.