mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Formatting derps
This commit is contained in:
1 parent
3a8847bdc8
commit
60664ef71b
1 file changed
+16
-16
@@ -77,22 +77,22 @@ public class ItemProxy extends Item
|
||||
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister register) {}
|
||||
|
||||
@Override
|
||||
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
|
||||
{
|
||||
if (par3Entity instanceof EntityPlayer)
|
||||
{
|
||||
EntityPlayer player = (EntityPlayer) par3Entity;
|
||||
for (Object o : player.inventoryContainer.inventorySlots)
|
||||
{
|
||||
Slot s = (Slot) o;
|
||||
if (s.getStack() != null && s.getStack().getItem() == this)
|
||||
player.inventory.decrStackSize(s.slotNumber, 64);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
|
||||
{
|
||||
if (par3Entity instanceof EntityPlayer)
|
||||
{
|
||||
EntityPlayer player = (EntityPlayer) par3Entity;
|
||||
for (Object o : player.inventoryContainer.inventorySlots)
|
||||
{
|
||||
Slot s = (Slot) o;
|
||||
if (s.getStack() != null && s.getStack().getItem() == this)
|
||||
player.inventory.decrStackSize(s.slotNumber, 64);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user