From 072caac26a5ff4acaee9a9caadd90636e7121d20 Mon Sep 17 00:00:00 2001 From: hhhzzzsss Date: Thu, 30 May 2024 23:02:06 -0500 Subject: [PATCH] Remove wrong instrument tolerance --- .../com/github/hhhzzzsss/songplayer/playing/Stage.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/github/hhhzzzsss/songplayer/playing/Stage.java b/src/main/java/com/github/hhhzzzsss/songplayer/playing/Stage.java index 286f7e4..681968b 100644 --- a/src/main/java/com/github/hhhzzzsss/songplayer/playing/Stage.java +++ b/src/main/java/com/github/hhhzzzsss/songplayer/playing/Stage.java @@ -546,9 +546,7 @@ public class Stage { } } - private static final int WRONG_INSTRUMENT_TOLERANCE = 3; public boolean hasBreakingModification() { - int wrongInstruments = 0; for (Map.Entry entry : noteblockPositions.entrySet()) { BlockState bs = SongPlayer.MC.world.getBlockState(entry.getValue()); int blockId = Block.getRawIdFromState(bs); @@ -564,10 +562,7 @@ public class Stage { return true; } if (targetInstrument != actualInstrument) { - wrongInstruments++; - if (wrongInstruments > WRONG_INSTRUMENT_TOLERANCE) { - return true; - } + return true; } BlockState aboveBs = SongPlayer.MC.world.getBlockState(entry.getValue().up());