Remove wrong instrument tolerance
This commit is contained in:
parent
e40f091961
commit
072caac26a
1 changed files with 1 additions and 6 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue