Solar panels got their tooltip back.
This commit is contained in:
parent
5f32f4dfda
commit
f77bc65316
2 changed files with 6 additions and 1 deletions
|
@ -55,6 +55,11 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
|||
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();
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public class BlockSolarPanel extends BlockMachineBase {
|
|||
|
||||
@Override
|
||||
public BlockEntity createBlockEntity(BlockView worldIn) {
|
||||
return new SolarPanelBlockEntity();
|
||||
return new SolarPanelBlockEntity(panelType);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue