Fix #1360 1.10 Some items crash rendering when NBT data is missing

This commit is contained in:
Nedelosk committed 2016-07-22 22:34:09 +02:00
1 parent 1969ed8b09
commit 2cccf95775
1 file changed
+1 -1
@@ -531,7 +531,7 @@ public abstract class BlockPile extends BlockStructure implements ITileEntityPro
}
public static IAlleleTreeSpecies getTreeSpecies(ItemStack stack) {
if (stack != null) {
if (stack != null && stack.hasTagCompound()) {
NBTTagCompound tagCompound = stack.getTagCompound();
// legacy