fix thanks @Muramasa
This commit is contained in:
parent
5de110ad42
commit
3d9a779242
1 changed files with 5 additions and 3 deletions
|
@ -133,10 +133,12 @@ public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBas
|
|||
}
|
||||
ArrayList<ItemStack> tDrops = new ArrayList();
|
||||
if (!mMineList.isEmpty()) {
|
||||
|
||||
ChunkPosition mle = mMineList.get(0);
|
||||
mMineList.remove(0);
|
||||
Block tMineBlock = getBaseMetaTileEntity().getBlockOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
|
||||
Block tMineBlock = null;
|
||||
while ((tMineBlock==null || tMineBlock == Blocks.air)) {
|
||||
mMineList.remove(0);
|
||||
tMineBlock = getBaseMetaTileEntity().getBlockOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
|
||||
}
|
||||
int metadata = getBaseMetaTileEntity().getMetaIDOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
|
||||
boolean silkTouch = tMineBlock.canSilkHarvest(getBaseMetaTileEntity().getWorld(), null, mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ, metadata);
|
||||
if (silkTouch){
|
||||
|
|
Loading…
Reference in a new issue