Fixed ship jumping before confirmation

This commit is contained in:
Unknown 2019-01-06 22:04:44 +01:00 committed by unknown
parent e4f82eed9e
commit 2c5282bb6d

View file

@ -156,6 +156,7 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
// report cooldown time when a command is requested
if ( isEnabled
&& isCommandConfirmed
&& enumShipCommand != EnumShipCommand.IDLE
&& enumShipCommand != EnumShipCommand.MAINTENANCE ) {
if (ticksCooldown % 20 == 0) {
@ -306,7 +307,8 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
switch (stateCurrent) {
case IDLE:
if ( enumShipCommand != EnumShipCommand.IDLE
if ( isCommandConfirmed
&& enumShipCommand != EnumShipCommand.IDLE
&& enumShipCommand != EnumShipCommand.MAINTENANCE ) {
commandCurrent = enumShipCommand;
stateCurrent = EnumShipCoreState.ONLINE;