mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user