Fixes #3880: Incorrect compare with empty itemstack. (#3882)

This commit is contained in:
yueh
2018-12-25 21:21:19 +01:00
committed by GitHub
parent d343ac47f5
commit dfcba264f3
@@ -160,7 +160,7 @@ final class AESharedItemStack implements Comparable<AESharedItemStack>
public Bounds( final ItemStack stack, final FuzzyMode fuzzy, final boolean ignoreMeta )
{
Preconditions.checkState( stack.isEmpty(), "ItemStack#isEmpty() has to be false" );
Preconditions.checkState( !stack.isEmpty(), "ItemStack#isEmpty() has to be false" );
Preconditions.checkState( stack.getCount() == 1, "ItemStack#getCount() has to be 1" );
final NBTTagCompound tag = stack.hasTagCompound() ? stack.getTagCompound() : null;