Blocks without an Item don't show up in the HUD
Darkhax opened this issue ยท 7 comments
Issue Description:
If you look at any block which doesn't have an ItemBlock, such as lit redstone ore, the hud will not show.
What happens:
Instead of having a hud be visible, there is no hud. I suspect this is because the ItemStack doesn't have an Item, and is considered empty.
What you expected to happen:
I expect the hud to show up, using the block as a fallback, or having some built in code to allow blocks without items to fall back to those.
Steps to reproduce:
- Place down redstone block.
- If it's not lit, punch or walk on it.
- Look at the hud and be disapointed.
Affected Versions (Do not use "latest"):
- Hwyla: Latest :kappa: (1.8.13)
- Minecraft: 1.11.2
- Forge: 13.20.0.2314
Possible Conflicting Mods (Provide their version, as well)
Nope
It looks like this might be an issue again in 1.12 and 1.14.
Blocks without it's corresponding item won't display any info for the block.
This can be replicated with the mods Ceiling Torch and/or Tombstone. Ceiling Torches and Graves placed after a player death won't display any information.
Corail31/tombstone_lite#107
If a new issue needs to be opened, just let me know!
Mods can register a plugin that provides an override stack for their block.
@TehNut is it really done to differenciate blocks using the same class (and having the same tileentity), or i missed something ? hm yes, the accessor, sorry ;)