Should fix #1289
This commit is contained in:
parent
790aa6f826
commit
a590fd8ee1
1 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,15 @@ public class ItemCells {
|
|||
}
|
||||
|
||||
public static boolean isCellEqual(ItemStack stack1, ItemStack stack2){
|
||||
if(stack1 == null || stack2 == null){
|
||||
return false;
|
||||
}
|
||||
if(stack1.isEmpty() || stack2.isEmpty()){
|
||||
return false;
|
||||
}
|
||||
if(stack1.getTagCompound() == null || stack2.getTagCompound() == null){
|
||||
return false;
|
||||
}
|
||||
return stack1.getTagCompound().equals(stack2.getTagCompound());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue