Fixed console spam when world is closing

This commit is contained in:
LemADEC 2017-01-16 01:56:08 +01:00
parent 0ad270073e
commit a93c93a289

View file

@ -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);
}
}