Cannot choose aspects in the Switch Actuactor Motor
alwaeles opened this issue ยท 4 comments
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
- Place a Switch Actuator Motor.
- Open the GUI.
- Interact in the GUI the way you want.
- Close the GUI, you can hear the piston noise.
- Open the GUI and see that all aspect flipped their states.
Expected behavior
Being able to select the aspect I want...
Logs & Environment
- Full log: No significant logging
- Crash report (If available): No crash report
Additional context
None
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);
}