Code cleanup

This commit is contained in:
LemADEC 2015-08-21 01:55:31 +02:00
parent 012c668b2b
commit 0b2375e17f
3 changed files with 3 additions and 7 deletions

View file

@ -17,7 +17,7 @@ buildscript {
apply plugin: 'forge'
version = "1.3.4"
version = "1.3.5-dev"
group = "cr0s.warpdrive" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "warpdrive"

View file

@ -83,9 +83,9 @@ public class SpaceEventHandler {
|| entity.worldObj.provider.dimensionId == WarpDriveConfig.G_HYPERSPACE_DIMENSION_ID) {
Block block1 = entity.worldObj.getBlock(x, y, z);
Block block2 = entity.worldObj.getBlock(x, y + 1, z);
boolean inVacuum = (!block1.isAssociatedBlock(WarpDrive.blockAir) && !block2.isAssociatedBlock(WarpDrive.blockAir));
boolean notInVacuum = block1.isAssociatedBlock(WarpDrive.blockAir) || block2.isAssociatedBlock(WarpDrive.blockAir);
Integer air;
if (!inVacuum) {// In space with air blocks
if (notInVacuum) {// In space with air blocks
air = entity_airBlock.get(entity.getEntityId());
if (air == null) {
entity_airBlock.put(entity.getEntityId(), AIR_BLOCK_TICKS);

View file

@ -14,7 +14,6 @@ import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.block.TileEntityLaser;
import cr0s.warpdrive.conf.WarpDriveConfig;
import cr0s.warpdrive.data.CameraRegistryItem;
import cr0s.warpdrive.render.ClientCameraHandler;
@ -80,9 +79,6 @@ public class BlockLaserCamera extends BlockContainer {
int cameraFrequency = ((TileEntityLaser)tileEntity).getCameraFrequency();
CameraRegistryItem cam = WarpDrive.instance.cameras.getCameraByFrequency(par1World, cameraFrequency);
if (WarpDriveConfig.LOGGING_CAMERA) {
WarpDrive.logger.info("Camera detected as " + cam);
}
WarpDrive.addChatMessage(entityPlayer, getLocalizedName()
+ ": Beam frequency '" + beamFrequency + "' is " + ((beamFrequency < 0) ? "invalid!" : "valid.")
+ " Camera frequency '" + cameraFrequency + "' is " + ((cam == null) ? "invalid!" : "valid for laser-camera at " + cam.position.chunkPosX + ", " + cam.position.chunkPosY + ", " + cam.position.chunkPosZ));