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