Trying to get the type of a flower will no longer append an NBT compound to the stack if none exists. This fixes tossing items in mana pools when there's no mana ending up in the items not being stackable with other items. Closes #818 and #815

This commit is contained in:
Lizbeth Rika committed 2015-04-25 16:27:50 +01:00
1 parent 08e854ce6e
commit 9044008363
1 file changed
+1 -1
@@ -98,7 +98,7 @@ public class ItemBlockSpecialFlower extends ItemBlockMod implements IRecipeKeyPr
}
public static String getType(ItemStack stack) {
return ItemNBTHelper.getString(stack, SubTileEntity.TAG_TYPE, "");
return ItemNBTHelper.detectNBT(stack) ? ItemNBTHelper.getString(stack, SubTileEntity.TAG_TYPE, "") : "";
}
public static ItemStack ofType(String type) {