Remove blocks that are outside of loaded chunks from bitset list

Remove another potential source of unneeded calculations, if a digital
miner is chunkloaded and chunks it is considering are outside of loaded
chunks, they will be iterated through for each block mined.
This commit is contained in:
Joshua Gwinn 2014-02-20 00:25:17 -07:00
parent 37321040f4
commit c8f0801486

View file

@ -167,6 +167,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
if(!coord.exists(worldObj)) if(!coord.exists(worldObj))
{ {
toRemove.add(index);
next = index + 1; next = index + 1;
continue; continue;
} }