Fix pick block crash on sorter
This commit is contained in:
parent
8478096bc7
commit
2fb13e1f3d
1 changed files with 3 additions and 1 deletions
|
@ -336,7 +336,9 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, IItem
|
|||
{
|
||||
if(data[0] instanceof ItemStack)
|
||||
{
|
||||
if(((ItemStack)data[0]).getItemDamage() != 11 && ((ItemStack)data[0]).getItemDamage() != 12 && ((ItemStack)data[0]).getItemDamage() != 13 && ((ItemStack)data[0]).getItemDamage() != 14)
|
||||
int meta = ((ItemStack)data[0]).getItemDamage();
|
||||
|
||||
if(meta != 11 && meta != 12 && meta != 13 && meta != 14 && meta != 15)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue