Fix additional source of Digital Miner tile entity freezing

The function nextSetBit was incorrectly assumed to search for indexes
starting after the index given, but it in fact is inclusive with the
index given, this can lead to the while loop turning infinite if a block
it is expecting to be there isn't there.
This commit is contained in:
Joshua Gwinn 2014-02-19 23:52:25 -07:00
parent c3f48c333f
commit 37321040f4

View file

@ -167,7 +167,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
if(!coord.exists(worldObj))
{
next = index;
next = index + 1;
continue;
}
@ -177,7 +177,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
if(id == 0)
{
toRemove.add(index);
next = index;
next = index + 1;
continue;
}
@ -195,7 +195,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
if(inverse ? hasFilter : !hasFilter)
{
toRemove.add(index);
next = index;
next = index + 1;
continue;
}