Ender IO

Ender IO

98M Downloads

Resetting levers behave inconsistently

RoarkCats opened this issue ยท 0 comments

commented

Is there an existing issue for this?

  • I did not find any existing issues.

Current Behavior

Resetting lever schedules do not cancel when manually disabled and re-enabled

Example:
If you enabled a 10s resetting lever, wait 4s, then disable it, wait 2s, then enable it, it will turn off after 4s more, not 10s

Expected Behavior

Manually disabling resetting levers cancel scheduled resets

Example:
If you enabled a 10s resetting lever, wait 4s, then disable it, wait 2s, then enable it, it will still turn off after 10s more

How to Test

  1. Use Xs resetting lever while starting an external stopwatch
  2. Wait a few seconds
  3. Toggle the lever off and back on
  4. Wait until the stopwatch reaches X seconds for it to reset prematurely

Local Environment

- **Operating System**: Windows
- **Java version**: 17.0.15 64b
- **Minecraft Version**: 1.20.1 Forge 47.4.0
- **Version**: 6.2.11-beta-all

Any Additional Information?

No response