Fixed #8917
This commit is contained in:
@@ -158,12 +158,13 @@ public class BlockIndexer{
|
|||||||
int pos = tile.pos();
|
int pos = tile.pos();
|
||||||
var seq = ores[drop.id][qx][qy];
|
var seq = ores[drop.id][qx][qy];
|
||||||
|
|
||||||
//when the drop can be mined, record the ore position
|
if(tile.block() == Blocks.air){
|
||||||
if(tile.block() == Blocks.air && !seq.contains(pos)){
|
//add the index if it is a valid new spot to mine at
|
||||||
seq.add(pos);
|
if(!seq.contains(pos)){
|
||||||
allOres.increment(drop);
|
seq.add(pos);
|
||||||
}else{
|
allOres.increment(drop);
|
||||||
//otherwise, it likely became blocked, remove it (even if it wasn't there)
|
}
|
||||||
|
}else if(seq.contains(pos)){ //otherwise, it likely became blocked, remove it
|
||||||
seq.removeValue(pos);
|
seq.removeValue(pos);
|
||||||
allOres.increment(drop, -1);
|
allOres.increment(drop, -1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user