mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Transition from null stacks to ItemStack.EMPTY
This commit is contained in:
1 parent
fa7b9b49bc
commit
01ab160ff9
100 files changed
+596
-616
No files matched your search
@@ -232,6 +232,11 @@ public final class InventoryUtils
|
||||
|
||||
public static boolean areItemsStackable(ItemStack toInsert, ItemStack inSlot)
|
||||
{
|
||||
if(toInsert.isEmpty() || inSlot.isEmpty())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return inSlot.isItemEqual(toInsert) && ItemStack.areItemStackTagsEqual(inSlot, toInsert);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user