Fixed ship jumping before confirmation
This commit is contained in:
parent
e4f82eed9e
commit
2c5282bb6d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue