mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Merge branch 'development' of https://github.com/aidancbrady/Mekanism into development
This commit is contained in:
commit
28c3b2a088
2 files changed
+9
-8
No files matched your search
@@ -43,6 +43,7 @@ public class ThreadMinerSearch extends Thread
|
||||
Coord4D coord = tileEntity.getStartingCoord();
|
||||
int diameter = tileEntity.getDiameter();
|
||||
int size = tileEntity.getTotalSize();
|
||||
ItemInfo info = new ItemInfo(0,0);
|
||||
|
||||
for(int i = 0; i < size; i++)
|
||||
{
|
||||
@@ -70,12 +71,11 @@ public class ThreadMinerSearch extends Thread
|
||||
continue;
|
||||
}
|
||||
|
||||
int blockID = tileEntity.worldObj.getBlockId(x, y, z);
|
||||
int meta = tileEntity.worldObj.getBlockMetadata(x, y, z);
|
||||
info.id = tileEntity.worldObj.getBlockId(x, y, z);
|
||||
info.meta = tileEntity.worldObj.getBlockMetadata(x, y, z);
|
||||
|
||||
if(blockID != 0 && blockID != Block.bedrock.blockID)
|
||||
if(info.id != 0 && info.id != Block.bedrock.blockID)
|
||||
{
|
||||
ItemInfo info = new ItemInfo(blockID, meta);
|
||||
boolean canFilter = false;
|
||||
|
||||
if(acceptedItems.containsKey(info))
|
||||
@@ -83,7 +83,7 @@ public class ThreadMinerSearch extends Thread
|
||||
canFilter = acceptedItems.get(info);
|
||||
}
|
||||
else {
|
||||
ItemStack stack = new ItemStack(blockID, 1, meta);
|
||||
ItemStack stack = new ItemStack(info.id, 1, info.meta);
|
||||
|
||||
if(tileEntity.replaceStack != null && tileEntity.replaceStack.isItemEqual(stack))
|
||||
{
|
||||
|
||||
@@ -167,7 +167,8 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
|
||||
if(!coord.exists(worldObj))
|
||||
{
|
||||
next = index;
|
||||
toRemove.add(index);
|
||||
next = index + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -177,7 +178,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
if(id == 0)
|
||||
{
|
||||
toRemove.add(index);
|
||||
next = index;
|
||||
next = index + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -195,7 +196,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
if(inverse ? hasFilter : !hasFilter)
|
||||
{
|
||||
toRemove.add(index);
|
||||
next = index;
|
||||
next = index + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user