Improvements for debug tool and solar panel

This commit is contained in:
drcrazy 2018-09-25 16:00:44 +03:00
parent 1e9cfa07b6
commit d06bd5eef9
3 changed files with 28 additions and 16 deletions

View file

@ -36,6 +36,7 @@ import reborncore.common.powerSystem.PowerSystem;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.StringUtils;
import techreborn.blocks.generator.BlockSolarPanel;
import techreborn.init.TRContent;
import techreborn.init.TRContent.SolarPanels;
import java.util.List;
@ -57,6 +58,10 @@ public class TileSolarPanel extends TilePowerAcceptor implements IToolDrop {
if (world.isRemote) {
return;
}
if (panel == TRContent.SolarPanels.CREATIVE) {
setEnergy(Integer.MAX_VALUE);
return;
}
if (world.getTotalWorldTime() % 20 == 0) {
canSeeSky = world.canBlockSeeSky(pos.up());
if (lastState != isSunOut()) {