RemainInMotion
RemainInMotion copied to clipboard
[Question] Confused about Engine vs. Motor
I read that the engine is deprecated and the motor can do everything the engine did with anchored mode.
However, using only the motor, I can't seem to get it to stay in non-anchored mode. When I first place it, it works, but will often reset itself to anchored mode. Once I open the GUI on the motor, sometimes setting a combination of other flags will get it to stick as non-anchored for a little while, but it almost always resets to anchored mode upon closing the GUI. Both changing settings in the GUI and actually moving a (simple) carriage frame with the motor cause it to switch to anchored mode.
Further, when I looked at the code below (from master, but I made it a permalink) it looks like the logic for isAnchored in motor vs. engine feeds off the same flags yet motor ultimately will set isAnchored to false if setConfigurationSuper set it to true for the same condition.
I'm really sorry if this is a stupid question. Feel like I'm missing something critical here. Can you shed any light on it for me?
https://github.com/planetguy32/RemainInMotion/blob/6911e96/src/main/java/me/planetguy/remaininmotion/drive/TileEntityCarriageMotor.java#L22
https://github.com/planetguy32/RemainInMotion/blob/d105cf9/src/main/java/me/planetguy/remaininmotion/drive/TileEntityCarriageEngine.java#L70
that sounds more like a [Bug] to me