Railcraft

Railcraft

34M Downloads

Cannot choose aspects in the Switch Actuactor Motor

alwaeles opened this issue ยท 4 comments

commented

Description of the Bug
Handling issues with the GUI and the Tile Entity... When I interact by any mean with the GUI the aspects flip between Red and all the other ones... Look on the screenshots.

To Reproduce

  1. Place a Switch Actuator Motor.
  2. Open the GUI.
  3. Interact in the GUI the way you want.
  4. Close the GUI, you can hear the piston noise.
  5. Open the GUI and see that all aspect flipped their states.

Expected behavior
Being able to select the aspect I want...

Screenshots & Video
2019-07-31_15 04 43
2019-07-31_15 05 08
2019-07-31_15 05 18

Logs & Environment

  • Full log: No significant logging
  • Crash report (If available): No crash report

Additional context
None

commented

The issue is caused by a mishandling in src/main/java/mods/railcraft/common/blocks/machine/wayobjects/actuators/TileActuatorMotor.java :

@Override
public void doActionOnAspect(SignalAspect aspect, boolean trigger) {
    switchOnAspects.flip(aspect.ordinal());
}

should be

@Override
public void doActionOnAspect(SignalAspect aspect, boolean trigger) {
    switchOnAspects.set(aspect.ordinal(), trigger);
}
commented

Ran into this issue today as well

commented

bug still present in 12.0.0

commented

Wait for 12.1.0