Resetting levers behave inconsistently #1093

Open
opened 2025-06-25 23:05:25 +00:00 by RoarkCats · 0 comments
RoarkCats commented 2025-06-25 23:05:25 +00:00 (Migrated from github.com)

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

### Is there an existing issue for this? - [x] 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 ```markdown - **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_
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#1093
No description provided.