Update GT_MetaTileEntity_AdvMiner2.java
This commit is contained in:
parent
4adb6554c2
commit
9be4d8c270
1 changed files with 9 additions and 8 deletions
|
@ -132,14 +132,15 @@ public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBas
|
|||
}
|
||||
}
|
||||
ArrayList<ItemStack> tDrops = new ArrayList();
|
||||
if (!mMineList.isEmpty()) {
|
||||
Block tMineBlock = null;
|
||||
ChunkPosition mle;
|
||||
while ((tMineBlock==null || tMineBlock == Blocks.air) && !mMineList.isEmpty()) {
|
||||
mle = mMineList.get(0);
|
||||
mMineList.remove(0);
|
||||
tMineBlock = getBaseMetaTileEntity().getBlockOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
|
||||
}
|
||||
Block tMineBlock = null;
|
||||
ChunkPosition mle;
|
||||
while ((tMineBlock==null || tMineBlock == Blocks.air) && !mMineList.isEmpty()) {
|
||||
mle = mMineList.get(0);
|
||||
mMineList.remove(0);
|
||||
tMineBlock = getBaseMetaTileEntity().getBlockOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
|
||||
}
|
||||
|
||||
if (tMineBlock!=null && tMineBlock!=Blocks.air) {
|
||||
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