Remove wrong instrument tolerance

This commit is contained in:
hhhzzzsss 2024-05-30 23:02:06 -05:00
parent e40f091961
commit 072caac26a

View file

@ -546,9 +546,7 @@ public class Stage {
}
}
private static final int WRONG_INSTRUMENT_TOLERANCE = 3;
public boolean hasBreakingModification() {
int wrongInstruments = 0;
for (Map.Entry<Integer, BlockPos> entry : noteblockPositions.entrySet()) {
BlockState bs = SongPlayer.MC.world.getBlockState(entry.getValue());
int blockId = Block.getRawIdFromState(bs);
@ -564,11 +562,8 @@ public class Stage {
return true;
}
if (targetInstrument != actualInstrument) {
wrongInstruments++;
if (wrongInstruments > WRONG_INSTRUMENT_TOLERANCE) {
return true;
}
}
BlockState aboveBs = SongPlayer.MC.world.getBlockState(entry.getValue().up());
if (!aboveBs.isAir() && !aboveBs.isLiquid()) {