Cleaned up ItemStableFabric

Cleaned up the indentation of ItemStableFabric and corrected some faulty
String comparisons.
This commit is contained in:
SenseiKiwi 2013-06-17 05:53:11 -04:00
parent 654a479692
commit 3b88d3a116

View file

@ -93,17 +93,12 @@ public class ItemStableFabric extends Item
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if(this.isSteven(par3EntityPlayer))
if (this.isSteven(par3EntityPlayer))
{
new Spells(par3EntityPlayer, par1ItemStack.stackSize).cast();
//mod_pocketDim.proxy.startCasting(par3EntityPlayer, par1ItemStack.stackSize);
}
Boolean didFindThing=false;
MovingObjectPosition hit = this.getMovingObjectPositionFromPlayer(par3EntityPlayer.worldObj, par3EntityPlayer, false );
if(hit!=null&&!par2World.isRemote)
@ -143,44 +138,35 @@ public class ItemStableFabric extends Item
switch(link.linkOrientation)
{
case 0: cardinal = "East";
case 0:
cardinal = "East";
break;
case 1: cardinal = "South";
case 1:
cardinal = "South";
break;
case 2: cardinal = "West";
case 2:
cardinal = "West";
break;
case 3: cardinal = "North";
case 3:
cardinal = "North";
break;
}
System.out.println("Link orientation is " + link.linkOrientation + "- "+cardinal);
System.out.println("Link orientation is " + link.linkOrientation + " - " + cardinal);
}
}
}
}
return par1ItemStack;
}
public boolean isSteven(EntityPlayer player)
{
if(player.username=="stevenrs11"||player.username=="Stevenrs11"||player.username=="StevenRS11")
{
return true;
}
return false;
return (player.username.equalsIgnoreCase("stevenrs11"));
}
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
}
}