Integrated ship command abort logic

This commit is contained in:
Unknown 2018-12-27 14:14:40 +01:00 committed by unknown
parent a98b8e45a0
commit 340265dfb7

View file

@ -367,6 +367,7 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
default:
WarpDrive.logger.error(String.format("%s Invalid controller command %s for current state %s",
this, enumShipCommand, stateCurrent));
stateCurrent = EnumShipCoreState.IDLE;
break;
}
break;
@ -523,6 +524,7 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
super.commandDone(success, reason);
if (!success) {
Commons.messageToAllPlayersInArea(this, reason);
stateCurrent = EnumShipCoreState.IDLE;
}
for (final BlockPos blockPos : blockPosShipControllers) {
if (!world.isBlockLoaded(blockPos, false)) {