working on the merge, needs testing still

This commit is contained in:
payonel 2021-05-14 13:13:59 -07:00
parent a3f2a436c2
commit 9d2754fd9a

View File

@ -65,7 +65,7 @@ object Item {
}
private def getTag(stack: ItemStack, keys: Array[String]): Option[NBTTagCompound] = {
if (stack == null || stack.stackSize == 0) None
if (stack == null || stack.getCount == 0 || stack == ItemStack.EMPTY) None
else if (!stack.hasTagCompound) None
else getTag(stack.getTagCompound, keys)
}