Formatting derps

This commit is contained in:
tterrag1098 2014-02-10 22:49:40 -05:00
parent 3a8847bdc8
commit 60664ef71b

View file

@ -77,22 +77,22 @@ public class ItemProxy extends Item
return stack; return stack;
} }
@Override @Override
public void registerIcons(IconRegister register) {} public void registerIcons(IconRegister register) {}
@Override @Override
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
{ {
if (par3Entity instanceof EntityPlayer) if (par3Entity instanceof EntityPlayer)
{ {
EntityPlayer player = (EntityPlayer) par3Entity; EntityPlayer player = (EntityPlayer) par3Entity;
for (Object o : player.inventoryContainer.inventorySlots) for (Object o : player.inventoryContainer.inventorySlots)
{ {
Slot s = (Slot) o; Slot s = (Slot) o;
if (s.getStack() != null && s.getStack().getItem() == this) if (s.getStack() != null && s.getStack().getItem() == this)
player.inventory.decrStackSize(s.slotNumber, 64); player.inventory.decrStackSize(s.slotNumber, 64);
} }
} }
} }
} }