Code cleanup

This commit is contained in:
LemADEC 2021-05-13 13:34:21 +02:00
parent d703077d25
commit fe020756f6

View file

@ -79,14 +79,13 @@ public class TileEntityEnanReactorLaser extends TileEntityAbstractLaser implemen
// skip if it's already set to another valid reactor core
if ( this.reactorFace != reactorFace
&& this.reactorFace != ReactorFace.UNKNOWN ) {
if (reactorCoreActual != null) {
WarpDrive.logger.warn(String.format("%s Ignoring new reactor %s on %s due to existing reactor %s on %s.",
this,
reactorCore, reactorFace.name,
reactorCoreActual, this.reactorFace.name ));
return;
}
&& this.reactorFace != ReactorFace.UNKNOWN
&& reactorCoreActual != null) {
WarpDrive.logger.warn(String.format("%s Ignoring new reactor %s on %s due to existing reactor %s on %s.",
this,
reactorCore, reactorFace.name,
reactorCoreActual, this.reactorFace.name ));
return;
}
// always update cached signature name