Fix some issues with the solar panels
This commit is contained in:
parent
3fe609e207
commit
0aa8974035
4 changed files with 62 additions and 36 deletions
|
@ -70,7 +70,7 @@ public class StackToolTipEvent {
|
|||
if (block != null && (block instanceof BlockContainer || block instanceof ITileEntityProvider)
|
||||
&& block.getRegistryName().getResourceDomain().contains("techreborn")) {
|
||||
TileEntity tile = block.createTileEntity(Minecraft.getMinecraft().world,
|
||||
block.getDefaultState());
|
||||
block.getStateFromMeta(event.getItemStack().getItemDamage()));
|
||||
if (tile instanceof IListInfoProvider) {
|
||||
((IListInfoProvider) tile).addInfo(event.getToolTip(), false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue