Formatting derps
This commit is contained in:
parent
3a8847bdc8
commit
60664ef71b
1 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue