Add isItemValidForSlot
This commit is contained in:
@@ -174,6 +174,12 @@ public class InventoryUtils
|
|||||||
|
|
||||||
for (int i = 0; i < inventory.getSizeInventory(); ++i)
|
for (int i = 0; i < inventory.getSizeInventory(); ++i)
|
||||||
{
|
{
|
||||||
|
// @TODO: This is experimental
|
||||||
|
if (!inventory.isItemValidForSlot(i, stack))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ItemStack slot = inventory.getStackInSlot(i);
|
ItemStack slot = inventory.getStackInSlot(i);
|
||||||
|
|
||||||
if (slot == null)
|
if (slot == null)
|
||||||
|
Reference in New Issue
Block a user