Code cleanup
This commit is contained in:
parent
dd2abbb3d2
commit
7d2c9873e4
2 changed files with 5 additions and 5 deletions
|
@ -86,7 +86,7 @@ public class TileEntityRadar extends TileEntityAbstractEnergy {
|
|||
}
|
||||
|
||||
private int calculateEnergyRequired(final int parRadius) {
|
||||
return (int)Math.round(Math.max(WarpDriveConfig.RADAR_SCAN_MIN_ENERGY_COST,
|
||||
return (int) Math.round(Math.max(WarpDriveConfig.RADAR_SCAN_MIN_ENERGY_COST,
|
||||
WarpDriveConfig.RADAR_SCAN_ENERGY_COST_FACTORS[0]
|
||||
+ WarpDriveConfig.RADAR_SCAN_ENERGY_COST_FACTORS[1] * parRadius
|
||||
+ WarpDriveConfig.RADAR_SCAN_ENERGY_COST_FACTORS[2] * parRadius * parRadius
|
||||
|
@ -94,7 +94,7 @@ public class TileEntityRadar extends TileEntityAbstractEnergy {
|
|||
}
|
||||
|
||||
private int calculateScanDuration(final int parRadius) {
|
||||
return (int)Math.round(20 * Math.max(WarpDriveConfig.RADAR_SCAN_MIN_DELAY_SECONDS,
|
||||
return (int) Math.round(20 * Math.max(WarpDriveConfig.RADAR_SCAN_MIN_DELAY_SECONDS,
|
||||
WarpDriveConfig.RADAR_SCAN_DELAY_FACTORS_SECONDS[0]
|
||||
+ WarpDriveConfig.RADAR_SCAN_DELAY_FACTORS_SECONDS[1] * parRadius
|
||||
+ WarpDriveConfig.RADAR_SCAN_DELAY_FACTORS_SECONDS[2] * parRadius * parRadius
|
||||
|
@ -151,7 +151,7 @@ public class TileEntityRadar extends TileEntityAbstractEnergy {
|
|||
}
|
||||
return new Integer[] { -1 };
|
||||
}
|
||||
|
||||
|
||||
private Object[] start() {
|
||||
// always clear results
|
||||
results = null;
|
||||
|
|
|
@ -20,8 +20,8 @@ public enum EnumTier implements IStringSerializable {
|
|||
|
||||
static {
|
||||
length = EnumTier.values().length;
|
||||
for (EnumTier enumTier : values()) {
|
||||
ID_MAP.put(enumTier.index, enumTier);
|
||||
for (final EnumTier tier : values()) {
|
||||
ID_MAP.put(tier.index, tier);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue