Added autostart without computers

This commit is contained in:
LemADEC 2015-11-17 17:26:21 +01:00
parent 018d17be88
commit f0ee218558
2 changed files with 16 additions and 0 deletions

View file

@ -115,6 +115,14 @@ public class TileEntityLaserTreeFarm extends TileEntityAbstractMiner {
delayTicks = 0;
delayTargetTicks = TREE_FARM_WARMUP_DELAY_TICKS;
updateMetadata(BlockLaserTreeFarm.ICON_IDLE);
// force start if no computer control is available
if (!WarpDriveConfig.isComputerCraftLoaded && !WarpDriveConfig.isOpenComputersLoaded) {
breakLeaves = true;
enableSilktouch = false;
tapTrees = true;
start(null);
}
return;
}

View file

@ -76,6 +76,14 @@ public class TileEntityMiningLaser extends TileEntityAbstractMiner {
delayTicksScan = 0;
delayTicksMine = 0;
updateMetadata(BlockMiningLaser.ICON_IDLE);
// force start if no computer control is available
if (!WarpDriveConfig.isComputerCraftLoaded && !WarpDriveConfig.isOpenComputersLoaded) {
enableSilktouch = false;
layerOffset = 1;
mineAllBlocks = true;
start(null);
}
return;
}