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:
parent
c3f48c333f
commit
37321040f4
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue