Revert "Fixed warning in stack tooltip event."
This reverts commit 1614f71
This commit is contained in:
parent
c15f808686
commit
475eb4b55f
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ public class StackToolTipEvent {
|
||||||
Block block = Block.getBlockFromItem(item);
|
Block block = Block.getBlockFromItem(item);
|
||||||
if (block != null && (block instanceof BlockContainer || block instanceof ITileEntityProvider)
|
if (block != null && (block instanceof BlockContainer || block instanceof ITileEntityProvider)
|
||||||
&& block.getRegistryName().getResourceDomain().contains("techreborn")) {
|
&& block.getRegistryName().getResourceDomain().contains("techreborn")) {
|
||||||
TileEntity tile = block.createTileEntity(Minecraft.getMinecraft().world, block.getDefaultState());
|
TileEntity tile = block.createTileEntity(Minecraft.getMinecraft().world,
|
||||||
|
block.getStateFromMeta(event.getItemStack().getItemDamage()));
|
||||||
if (tile instanceof IListInfoProvider) {
|
if (tile instanceof IListInfoProvider) {
|
||||||
((IListInfoProvider) tile).addInfo(event.getToolTip(), false);
|
((IListInfoProvider) tile).addInfo(event.getToolTip(), false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue