mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
retract drill upon hitting depth rock
This commit is contained in:
parent
7113838d68
commit
f7ffc694bf
@ -5,6 +5,7 @@ import java.util.*;
|
||||
|
||||
import com.hbm.blocks.BlockDummyable;
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.blocks.generic.BlockDepth;
|
||||
import com.hbm.blocks.generic.BlockBedrockOreTE.TileEntityBedrockOre;
|
||||
import com.hbm.blocks.network.CraneInserter;
|
||||
import com.hbm.entity.item.EntityMovingItem;
|
||||
@ -270,7 +271,12 @@ public class TileEntityMachineExcavator extends TileEntityMachineBase implements
|
||||
break;
|
||||
}
|
||||
|
||||
if(shouldIgnoreBlock(b, x, y ,z)) continue;
|
||||
// if hitting depth rock, turn off the drill
|
||||
if(b instanceof BlockDepth) {
|
||||
this.enableDrill = false;
|
||||
}
|
||||
|
||||
if(shouldIgnoreBlock(b, x, y, z)) continue;
|
||||
|
||||
ignoreAll = false;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user