Fixed console spam when world is closing
This commit is contained in:
parent
0ad270073e
commit
a93c93a289
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ public class TileEntityShipController extends TileEntityAbstractInterfaced {
|
|||
|
||||
private void setDistance(int distance) {
|
||||
this.distance = Math.max(1, Math.min(WarpDriveConfig.SHIP_MAX_JUMP_DISTANCE, distance));
|
||||
if (WarpDriveConfig.LOGGING_JUMP) {
|
||||
if (WarpDriveConfig.LOGGING_JUMP && worldObj != null) {
|
||||
WarpDrive.logger.info(this + " Jump distance set to " + distance);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue