Fix some issues with the solar panels

This commit is contained in:
modmuss50 2017-10-09 11:48:13 +01:00 committed by drcrazy
parent 3fe609e207
commit 0aa8974035
4 changed files with 62 additions and 36 deletions

View file

@ -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);
}