From 9b3a3da532a077c8fb0761c5dff2cbbea911c0e8 Mon Sep 17 00:00:00 2001 From: Francesco Macagno Date: Thu, 30 Jul 2015 19:37:41 -0700 Subject: [PATCH] Removing unneccesary code --- src/java/cr0s/warpdrive/EntityJump.java | 1 - .../cr0s/warpdrive/machines/TileEntityAbstractMiner.java | 1 - .../warpdrive/machines/TileEntityLaserReactorMonitor.java | 5 ----- src/java/cr0s/warpdrive/machines/TileEntityPowerLaser.java | 5 ----- 4 files changed, 12 deletions(-) diff --git a/src/java/cr0s/warpdrive/EntityJump.java b/src/java/cr0s/warpdrive/EntityJump.java index e0cfc0db..5102e02e 100644 --- a/src/java/cr0s/warpdrive/EntityJump.java +++ b/src/java/cr0s/warpdrive/EntityJump.java @@ -361,7 +361,6 @@ public class EntityJump extends Entity { } if (!planeValid) { LocalProfiler.stop(); - @SuppressWarnings("null") String msg = "Ship is outside border, unable to reach space!\nClosest transition plane is ~" + closestPlaneDistance + " m away (" + (closestTransitionPlane.dimensionCenterX - closestTransitionPlane.borderSizeX) + ", 250," + (closestTransitionPlane.dimensionCenterZ - closestTransitionPlane.borderSizeZ) + ") to (" diff --git a/src/java/cr0s/warpdrive/machines/TileEntityAbstractMiner.java b/src/java/cr0s/warpdrive/machines/TileEntityAbstractMiner.java index cff5d350..65088f66 100644 --- a/src/java/cr0s/warpdrive/machines/TileEntityAbstractMiner.java +++ b/src/java/cr0s/warpdrive/machines/TileEntityAbstractMiner.java @@ -175,7 +175,6 @@ public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser return false; } - @SuppressWarnings("unused") private boolean canDig(Block block, int x, int y, int z) {// not used // ignore air & fluids if (block == null || (worldObj.isAirBlock(x, y, z) || (block instanceof IFluidBlock))) { diff --git a/src/java/cr0s/warpdrive/machines/TileEntityLaserReactorMonitor.java b/src/java/cr0s/warpdrive/machines/TileEntityLaserReactorMonitor.java index 9ebb1260..c1c7ff97 100644 --- a/src/java/cr0s/warpdrive/machines/TileEntityLaserReactorMonitor.java +++ b/src/java/cr0s/warpdrive/machines/TileEntityLaserReactorMonitor.java @@ -124,11 +124,6 @@ public class TileEntityLaserReactorMonitor extends TileEntityAbstractLaser { super.readFromNBT(tag); } - @Override - public boolean shouldChunkLoad() { - return false; - } - @Override public int getMaxEnergyStored() { return WarpDriveConfig.RM_MAX_ENERGY; diff --git a/src/java/cr0s/warpdrive/machines/TileEntityPowerLaser.java b/src/java/cr0s/warpdrive/machines/TileEntityPowerLaser.java index 79bb0623..e30efb9b 100644 --- a/src/java/cr0s/warpdrive/machines/TileEntityPowerLaser.java +++ b/src/java/cr0s/warpdrive/machines/TileEntityPowerLaser.java @@ -23,11 +23,6 @@ public class TileEntityPowerLaser extends TileEntityAbstractLaser implements IPe String[] methodArray = { "energy", "hasReactor", "side", "sendLaser", "help" }; - @Override - public boolean shouldChunkLoad() { - return false; - } - public TileEntityPowerReactor scanForReactor() { reactor = null; TileEntity te;