mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-10 07:45:05 -04:00
working on the merge, needs testing still
This commit is contained in:
parent
a3f2a436c2
commit
9d2754fd9a
@ -65,7 +65,7 @@ object Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private def getTag(stack: ItemStack, keys: Array[String]): Option[NBTTagCompound] = {
|
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 if (!stack.hasTagCompound) None
|
||||||
else getTag(stack.getTagCompound, keys)
|
else getTag(stack.getTagCompound, keys)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user