Tech Reborn

Tech Reborn

30M Downloads

Near-zero energy amounts in cables still shock the player

The-Fireplace opened this issue ยท 1 comments

commented

Describe the bug
When energy stored/being transferred is near-zero, cables still shock the player despite "no" energy being transferred.

Steps to Reproduce
Steps to reproduce the behavior:

  • Have machines that are using energy with a setup like the following, with the right generator powering the machines, then run out of power
  • See that the rightmost batbox has no energy
  • See that the middle batbox has an increasingly tiny but never quite zero amount of energy stored
  • Stand on the tin cable and get shocked still.

Screenshots
image
image

Environment (please complete the following information with the version):

  • Minecraft: 1.16.5
  • Mod Loader: Fabric
  • Tech Reborn: v3.8.3+build.231
commented

TR is now using integer energy amounts, so this should be fixed.