Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LemADEC committed Sep 7, 2015
1 parent 13b1d00 commit 7ee3252
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.world.chunk.Chunk;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IUpgradable;
import cr0s.warpdrive.config.WarpDriveConfig;
import cr0s.warpdrive.data.EnumUpgradeTypes;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cr0s/warpdrive/command/CommandSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void processCommand(ICommandSender sender, String[] args) {
int targetDimensionId = Integer.MAX_VALUE;

EntityPlayerMP player = null;
if (sender != null && sender instanceof EntityPlayerMP) {
if (sender instanceof EntityPlayerMP) {
player = (EntityPlayerMP) sender;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cr0s/warpdrive/data/JumpBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public boolean deploy(World targetWorld, int offsetX, int offsetY, int offsetZ)
}
} else {
WarpDrive.logger.info(" deploy failed to create new tile entity at " + x + ", " + y + ", " + z + " blockId " + block + ":" + blockMeta);
WarpDrive.logger.info("NBT data was " + ((oldnbt == null) ? "null" : oldnbt.toString()));
WarpDrive.logger.info("NBT data was " + oldnbt);
}
}
} catch (Exception exception) {
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/cr0s/warpdrive/data/Vector3.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,8 @@ public MovingObjectPosition rayTraceEntities(World world, float rotationYaw, flo
if (aabb.isVecInside(startingPosition)) {
if (0.0D < closestEntity || closestEntity == 0.0D) {
pickedEntity = new MovingObjectPosition(entityHit);

if (pickedEntity != null) {
pickedEntity.hitVec = hitMOP.hitVec;
closestEntity = 0.0D;
}
pickedEntity.hitVec = hitMOP.hitVec;
closestEntity = 0.0D;
}
} else {
double distance = startingPosition.distanceTo(hitMOP.hitVec);
Expand Down

0 comments on commit 7ee3252

Please sign in to comment.