Code cleanup
This commit is contained in:
parent
13b1d005bf
commit
7ee3252070
4 changed files with 4 additions and 8 deletions
|
@ -6,7 +6,6 @@ import cpw.mods.fml.common.Optional;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.world.ChunkCoordIntPair;
|
import net.minecraft.world.ChunkCoordIntPair;
|
||||||
import net.minecraft.world.chunk.Chunk;
|
import net.minecraft.world.chunk.Chunk;
|
||||||
import cr0s.warpdrive.WarpDrive;
|
|
||||||
import cr0s.warpdrive.api.IUpgradable;
|
import cr0s.warpdrive.api.IUpgradable;
|
||||||
import cr0s.warpdrive.config.WarpDriveConfig;
|
import cr0s.warpdrive.config.WarpDriveConfig;
|
||||||
import cr0s.warpdrive.data.EnumUpgradeTypes;
|
import cr0s.warpdrive.data.EnumUpgradeTypes;
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class CommandSpace extends CommandBase {
|
||||||
int targetDimensionId = Integer.MAX_VALUE;
|
int targetDimensionId = Integer.MAX_VALUE;
|
||||||
|
|
||||||
EntityPlayerMP player = null;
|
EntityPlayerMP player = null;
|
||||||
if (sender != null && sender instanceof EntityPlayerMP) {
|
if (sender instanceof EntityPlayerMP) {
|
||||||
player = (EntityPlayerMP) sender;
|
player = (EntityPlayerMP) sender;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class JumpBlock {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WarpDrive.logger.info(" deploy failed to create new tile entity at " + x + ", " + y + ", " + z + " blockId " + block + ":" + blockMeta);
|
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) {
|
} catch (Exception exception) {
|
||||||
|
|
|
@ -676,11 +676,8 @@ public class Vector3 implements Cloneable {
|
||||||
if (aabb.isVecInside(startingPosition)) {
|
if (aabb.isVecInside(startingPosition)) {
|
||||||
if (0.0D < closestEntity || closestEntity == 0.0D) {
|
if (0.0D < closestEntity || closestEntity == 0.0D) {
|
||||||
pickedEntity = new MovingObjectPosition(entityHit);
|
pickedEntity = new MovingObjectPosition(entityHit);
|
||||||
|
pickedEntity.hitVec = hitMOP.hitVec;
|
||||||
if (pickedEntity != null) {
|
closestEntity = 0.0D;
|
||||||
pickedEntity.hitVec = hitMOP.hitVec;
|
|
||||||
closestEntity = 0.0D;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
double distance = startingPosition.distanceTo(hitMOP.hitVec);
|
double distance = startingPosition.distanceTo(hitMOP.hitVec);
|
||||||
|
|
Loading…
Reference in a new issue