Fixed ship builder no longer teleporting owner to their new ship

This commit is contained in:
LemADEC 2021-05-23 22:48:19 +02:00
parent 759be5fb73
commit 718ce6805f

View file

@ -803,12 +803,8 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
return false;
}
doUpdateParameters(false);
if (!isAssemblyValid) {
Commons.addChatMessage(entityPlayerMP, new WarpDriveText(Commons.getStyleHeader(), !name.isEmpty() ? name : "ShipCore")
.appendSibling(textValidityIssues));
return false;
}
// note: ship was just deployed, we assume it's valid instead of delaying while waiting for initial scan
// consequently, the security station will probably not be defined yet...
final TileEntitySecurityStation tileEntitySecurityStation = getSecurityStation();
if ( tileEntitySecurityStation != null
&& tileEntitySecurityStation != TileEntitySecurityStation.DUMMY ) {