Code cleanup
This commit is contained in:
parent
d703077d25
commit
fe020756f6
1 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue