Merge branch 'fix-adv-miner-ii-exploit' into experimental
This commit is contained in:
commit
39292a9626
1 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ import java.util.ArrayList;
|
|||
|
||||
public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBase {
|
||||
|
||||
public ArrayList<ChunkPosition> mMineList = new ArrayList();
|
||||
private final ArrayList<ChunkPosition> mMineList = new ArrayList();
|
||||
private boolean completedCycle = false;
|
||||
|
||||
public GT_MetaTileEntity_AdvMiner2(int aID, String aName, String aNameRegional) {
|
||||
|
@ -122,8 +122,8 @@ public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBas
|
|||
}
|
||||
ArrayList<ItemStack> tDrops = new ArrayList();
|
||||
if (!mMineList.isEmpty()) {
|
||||
Block tMineBlock = getBaseMetaTileEntity().getBlockOffset(mMineList.get(0).chunkPosX, mMineList.get(0).chunkPosY, mMineList.get(0).chunkPosZ);
|
||||
tDrops = tMineBlock.getDrops(getBaseMetaTileEntity().getWorld(), mMineList.get(0).chunkPosX, mMineList.get(0).chunkPosY, mMineList.get(0).chunkPosZ, getBaseMetaTileEntity().getMetaIDOffset(mMineList.get(0).chunkPosX, mMineList.get(0).chunkPosY, mMineList.get(0).chunkPosZ), 1);
|
||||
ChunkPosition oreBlockOffsetPos = mMineList.get(0);
|
||||
tDrops = ((GT_TileEntity_Ores) getBaseMetaTileEntity().getTileEntityOffset(oreBlockOffsetPos.chunkPosX, oreBlockOffsetPos.chunkPosY, oreBlockOffsetPos.chunkPosZ)).getDrops(1);
|
||||
if (!tDrops.isEmpty()) {
|
||||
ItemData tData = GT_OreDictUnificator.getItemData(tDrops.get(0).copy());
|
||||
if (tData.mPrefix != OrePrefixes.crushed&& tData.mMaterial.mMaterial != Materials.Oilsands) {
|
||||
|
@ -145,7 +145,7 @@ public class GT_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBas
|
|||
mOutputItems = tStack;
|
||||
}
|
||||
}
|
||||
getBaseMetaTileEntity().getWorld().setBlockToAir(mMineList.get(0).chunkPosX + getBaseMetaTileEntity().getXCoord(), mMineList.get(0).chunkPosY + getBaseMetaTileEntity().getYCoord(), mMineList.get(0).chunkPosZ + getBaseMetaTileEntity().getZCoord());
|
||||
getBaseMetaTileEntity().getWorld().setBlockToAir(oreBlockOffsetPos.chunkPosX + getBaseMetaTileEntity().getXCoord(), oreBlockOffsetPos.chunkPosY + getBaseMetaTileEntity().getYCoord(), oreBlockOffsetPos.chunkPosZ + getBaseMetaTileEntity().getZCoord());
|
||||
mMineList.remove(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue