parent
5187f36fcd
commit
95d51a7cb7
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public class StackToolTipEvent {
|
|||
((IListInfoProvider) event.itemStack.getItem()).addInfo(event.toolTip, false);
|
||||
} else{
|
||||
Block block = Block.getBlockFromItem(event.itemStack.getItem());
|
||||
if(block != null && block instanceof BlockContainer){
|
||||
if(block != null && block instanceof BlockContainer && block.getClass().getCanonicalName().startsWith("techreborn.")){
|
||||
TileEntity tile = block.createTileEntity(Minecraft.getMinecraft().theWorld, event.itemStack.getItemDamage());
|
||||
if(tile instanceof IListInfoProvider){
|
||||
((IListInfoProvider) tile).addInfo(event.toolTip, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue