Improved logs
This commit is contained in:
parent
67bda58fd9
commit
fcc81b7f5a
2 changed files with 4 additions and 3 deletions
|
@ -155,10 +155,11 @@ public abstract class TileEntityAbstractShipController extends TileEntityAbstrac
|
|||
this.enumShipCommand = enumShipCommand;
|
||||
this.isCommandConfirmed = isConfirmed;
|
||||
markDirty();
|
||||
if (WarpDriveConfig.LOGGING_LUA && hasWorld()) {
|
||||
if (WarpDriveConfig.LOGGING_LUA && hasWorld() && !world.isRemote) {
|
||||
WarpDrive.logger.info(String.format("%s Command set to %s (%s)",
|
||||
this, this.enumShipCommand, this.isCommandConfirmed));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,10 +197,10 @@ public class TileEntityShipCore extends TileEntityAbstractShipController impleme
|
|||
if (logTicks <= 0) {
|
||||
logTicks = LOG_INTERVAL_TICKS;
|
||||
if (WarpDriveConfig.LOGGING_JUMP) {
|
||||
WarpDrive.logger.info(String.format("%s %s, isEnabled %s, %d controllers, warmup %d, cooldown %d",
|
||||
WarpDrive.logger.info(String.format("%s, %s, %s, %d controllers, warmup %d, cooldown %d",
|
||||
this,
|
||||
stateCurrent,
|
||||
isEnabled,
|
||||
isEnabled ? "Enabled" : "Disabled",
|
||||
0, // @TODO countControllers,
|
||||
warmupTime_ticks,
|
||||
ticksCooldown));
|
||||
|
|
Loading…
Add table
Reference in a new issue