From 0a02b6e1880b78304dd0b04e7682e42eb4ce1aba Mon Sep 17 00:00:00 2001 From: LemADEC Date: Mon, 29 May 2017 16:45:31 +0200 Subject: [PATCH] Code cleanup --- .../cr0s/warpdrive/block/movement/TileEntityShipCore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java b/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java index 051bb4ca..663d565c 100644 --- a/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java +++ b/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java @@ -830,7 +830,7 @@ public class TileEntityShipCore extends TileEntityAbstractEnergy implements ISta if (shipMass < WarpDriveConfig.SHIP_VOLUME_MIN_FOR_HYPERSPACE) { Jumpgate nearestGate = null; if (WarpDrive.jumpgates == null) { - WarpDrive.logger.warn(this + " WarpDrive.instance.jumpGates is NULL!"); + WarpDrive.logger.warn(this + " WarpDrive.jumpGates is NULL!"); } else { nearestGate = WarpDrive.jumpgates.findNearestGate(xCoord, yCoord, zCoord); } @@ -838,7 +838,7 @@ public class TileEntityShipCore extends TileEntityAbstractEnergy implements ISta StringBuilder reason = new StringBuilder(); if (nearestGate == null || !isShipInJumpgate(nearestGate, reason)) { messageToAllPlayersOnShip("Ship is too small (" + shipMass + "/" + WarpDriveConfig.SHIP_VOLUME_MIN_FOR_HYPERSPACE - + ").\nInsufficient ship mass to open hyperspace portal.\nUse a jumpgate to reach or exit hyperspace."); + + ").\nInsufficient ship mass to engage alcubierre drive.\nUse a jumpgate to reach or exit hyperspace."); controller.setJumpFlag(false); return; } @@ -887,7 +887,7 @@ public class TileEntityShipCore extends TileEntityAbstractEnergy implements ISta if (WarpDriveConfig.LOGGING_JUMP) { WarpDrive.logger.info(this + " Movement adjusted to (" + moveX + " " + moveY + " " + moveZ + ") blocks."); } - JumpSequencer jump = new JumpSequencer(this, (currentMode == EnumShipCoreMode.HYPERSPACE), + final JumpSequencer jump = new JumpSequencer(this, (currentMode == EnumShipCoreMode.HYPERSPACE), moveX, moveY, moveZ, controller.getRotationSteps(), false, 0, 0, 0); jump.enable();