Update GT_MetaTileEntity_AdvMiner2.java

This commit is contained in:
Logan Perkins 2016-06-27 17:20:47 -07:00 committed by GitHub
parent 4adb6554c2
commit 9be4d8c270

View file

@ -132,7 +132,6 @@ public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBas
} }
} }
ArrayList<ItemStack> tDrops = new ArrayList(); ArrayList<ItemStack> tDrops = new ArrayList();
if (!mMineList.isEmpty()) {
Block tMineBlock = null; Block tMineBlock = null;
ChunkPosition mle; ChunkPosition mle;
while ((tMineBlock==null || tMineBlock == Blocks.air) && !mMineList.isEmpty()) { while ((tMineBlock==null || tMineBlock == Blocks.air) && !mMineList.isEmpty()) {
@ -140,6 +139,8 @@ public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBas
mMineList.remove(0); mMineList.remove(0);
tMineBlock = getBaseMetaTileEntity().getBlockOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ); 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); int metadata = getBaseMetaTileEntity().getMetaIDOffset(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
boolean silkTouch = tMineBlock.canSilkHarvest(getBaseMetaTileEntity().getWorld(), null, mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ, metadata); boolean silkTouch = tMineBlock.canSilkHarvest(getBaseMetaTileEntity().getWorld(), null, mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ, metadata);
if (silkTouch){ if (silkTouch){