Add isItemValidForSlot

This commit is contained in:
Raoul Van den Berge
2016-03-20 20:27:18 +01:00
parent 241ff583ec
commit d24f9e8a8e

View File

@@ -174,6 +174,12 @@ public class InventoryUtils
for (int i = 0; i < inventory.getSizeInventory(); ++i)
{
// @TODO: This is experimental
if (!inventory.isItemValidForSlot(i, stack))
{
continue;
}
ItemStack slot = inventory.getStackInSlot(i);
if (slot == null)