This commit is contained in:
modmuss50 2017-10-08 18:56:07 +01:00
parent 790aa6f826
commit a590fd8ee1
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -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());
}