Skip to content

Commit 6768169

Browse files
author
Philip Hansen
committed
Resolved drill getting stuck when trying to drill air
1 parent 281a305 commit 6768169

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/vswe/stevescarts/Modules/Workers/Tools/ModuleDrill.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public boolean work() {
7777
if (isBroken()) {
7878
return false;
7979
}
80-
80+
8181
//get the next block so the cart knows where to mine
8282
Vec3 next = getNextblock();
8383
//save the coordinates for easy access
@@ -413,6 +413,10 @@ public Object isValidBlock(int x, int y, int z, int i, int j, boolean flag)
413413
return null;
414414
//don't remove bedrock
415415
}
416+
else if (b == Blocks.air)
417+
{
418+
return null;
419+
}
416420
else if (b == Blocks.bedrock)
417421
{
418422
return null;

0 commit comments

Comments
 (0)