Deleted unnecessary casts with Eclipse
This commit is contained in:
@@ -1010,7 +1010,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
|
||||
EnumSet<ForgeDirection> possibleDirections = iHost.getTargets();
|
||||
for (ForgeDirection s : possibleDirections)
|
||||
{
|
||||
Vec3 from = Vec3.createVectorHelper( (double) tile.xCoord + 0.5, (double) tile.yCoord + 0.5, (double) tile.zCoord + 0.5 );
|
||||
Vec3 from = Vec3.createVectorHelper( tile.xCoord + 0.5, tile.yCoord + 0.5, tile.zCoord + 0.5 );
|
||||
from = from.addVector( s.offsetX * 0.501, s.offsetY * 0.501, s.offsetZ * 0.501 );
|
||||
Vec3 to = from.addVector( s.offsetX, s.offsetY, s.offsetZ );
|
||||
|
||||
|
||||
@@ -63,12 +63,12 @@ public class Splotch
|
||||
|
||||
public float x()
|
||||
{
|
||||
return (float) (pos & 0x0f) / 15.0f;
|
||||
return (pos & 0x0f) / 15.0f;
|
||||
}
|
||||
|
||||
public float y()
|
||||
{
|
||||
return (float) ((pos >> 4) & 0x0f) / 15.0f;
|
||||
return ((pos >> 4) & 0x0f) / 15.0f;
|
||||
}
|
||||
|
||||
public int getSeed()
|
||||
|
||||
@@ -126,9 +126,9 @@ public class WirelessTerminalGuiObject implements IPortableCell, IActionHost
|
||||
|
||||
if ( dc.getWorld() == myPlayer.worldObj )
|
||||
{
|
||||
double offX = (double) dc.x - myPlayer.posX;
|
||||
double offY = (double) dc.y - myPlayer.posY;
|
||||
double offZ = (double) dc.z - myPlayer.posZ;
|
||||
double offX = dc.x - myPlayer.posX;
|
||||
double offY = dc.y - myPlayer.posY;
|
||||
double offZ = dc.z - myPlayer.posZ;
|
||||
|
||||
double r = offX * offX + offY * offY + offZ * offZ;
|
||||
if ( r < rangeLimit && sqRange > r )
|
||||
|
||||
Reference in New Issue
Block a user