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() {
|
public boolean hasBreakingModification() {
|
||||||
int wrongInstruments = 0;
|
|
||||||
for (Map.Entry<Integer, BlockPos> entry : noteblockPositions.entrySet()) {
|
for (Map.Entry<Integer, BlockPos> entry : noteblockPositions.entrySet()) {
|
||||||
BlockState bs = SongPlayer.MC.world.getBlockState(entry.getValue());
|
BlockState bs = SongPlayer.MC.world.getBlockState(entry.getValue());
|
||||||
int blockId = Block.getRawIdFromState(bs);
|
int blockId = Block.getRawIdFromState(bs);
|
||||||
|
@ -564,10 +562,7 @@ public class Stage {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (targetInstrument != actualInstrument) {
|
if (targetInstrument != actualInstrument) {
|
||||||
wrongInstruments++;
|
return true;
|
||||||
if (wrongInstruments > WRONG_INSTRUMENT_TOLERANCE) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockState aboveBs = SongPlayer.MC.world.getBlockState(entry.getValue().up());
|
BlockState aboveBs = SongPlayer.MC.world.getBlockState(entry.getValue().up());
|
||||||
|
|
Loading…
Reference in a new issue