Code cleanup

This commit is contained in:
LemADEC 2016-03-02 04:04:24 +01:00
parent 1ec314e45b
commit 39bc22e4b3
3 changed files with 4 additions and 3 deletions

View file

@ -383,7 +383,6 @@ public class WarpDrive implements LoadingCallback {
blockHulls_slab = new Block[3 * 16]; blockHulls_slab = new Block[3 * 16];
for(int tier = 1; tier <= 3; tier++) { for(int tier = 1; tier <= 3; tier++) {
logger.info("Registering hull tier " + tier);
int index = tier - 1; int index = tier - 1;
blockHulls_plain[index] = new BlockHullPlain(tier); blockHulls_plain[index] = new BlockHullPlain(tier);
blockHulls_glass[index] = new BlockHullGlass(tier); blockHulls_glass[index] = new BlockHullGlass(tier);

View file

@ -537,10 +537,10 @@ public class TileEntityEnanReactorCore extends TileEntityAbstractEnergy {
@Override @Override
public String toString() { public String toString() {
return String.format("%s \'%s\' @ \'%s\' %.2f, %.2f, %.2f", new Object[] { return String.format("%s \'%s\' @ \'%s\' (%d %d %d)",
getClass().getSimpleName(), getClass().getSimpleName(),
connectedComputers == null ? "~NULL~" : connectedComputers, connectedComputers == null ? "~NULL~" : connectedComputers,
worldObj == null ? "~NULL~" : worldObj.getWorldInfo().getWorldName(), worldObj == null ? "~NULL~" : worldObj.getWorldInfo().getWorldName(),
Double.valueOf(xCoord), Double.valueOf(yCoord), Double.valueOf(zCoord) }); Integer.valueOf(xCoord), Integer.valueOf(yCoord), Integer.valueOf(zCoord));
} }
} }

View file

@ -10,6 +10,8 @@ import net.minecraft.world.World;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;
//import calclavia.lib.render.CalclaviaRenderHelper; //import calclavia.lib.render.CalclaviaRenderHelper;
import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;