Skip to content

Commit

Permalink
Resolved drill getting stuck when trying to drill air
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Hansen committed Jun 24, 2014
1 parent 281a305 commit 6768169
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public boolean work() {
if (isBroken()) {
return false;
}

//get the next block so the cart knows where to mine
Vec3 next = getNextblock();
//save the coordinates for easy access
Expand Down Expand Up @@ -413,6 +413,10 @@ public Object isValidBlock(int x, int y, int z, int i, int j, boolean flag)
return null;
//don't remove bedrock
}
else if (b == Blocks.air)
{
return null;
}
else if (b == Blocks.bedrock)
{
return null;
Expand Down

0 comments on commit 6768169

Please sign in to comment.