Solar panels got their tooltip back.

This commit is contained in:
drcrazy 2019-09-27 16:29:11 +03:00
parent 5f32f4dfda
commit f77bc65316
2 changed files with 6 additions and 1 deletions

View file

@ -54,6 +54,11 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
public SolarPanelBlockEntity() {
super(TRBlockEntities.SOLAR_PANEL);
}
public SolarPanelBlockEntity(SolarPanels panel) {
super(TRBlockEntities.SOLAR_PANEL);
this.panel = panel;
}
public boolean isSunOut() {
return canSeeSky && !world.isRaining() && !world.isThundering() && world.isDaylight();

View file

@ -45,7 +45,7 @@ public class BlockSolarPanel extends BlockMachineBase {
@Override
public BlockEntity createBlockEntity(BlockView worldIn) {
return new SolarPanelBlockEntity();
return new SolarPanelBlockEntity(panelType);
}
@Override