Use given variables to condense code

This commit is contained in:
GotoLink 2013-10-28 20:41:41 +01:00
commit 578051b530
13 changed files with 27 additions and 74 deletions

View file

@ -19,7 +19,7 @@ public class ItemStaffAir extends ItemStaff {
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {
if (itemStack.stackTagCompound == null)
itemStack.setTagCompound(new NBTTagCompound());
if (itemStack.stackTagCompound.getBoolean("charging") == false) {
if (!itemStack.stackTagCompound.getBoolean("charging")) {
itemStack.stackTagCompound.setBoolean("charging", true);
}
return itemStack;