mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-06 07:47:35 +01:00
Fix fastbreak for the moment.
This commit is contained in:
parent
b5ee2fe985
commit
0b083f9d30
@ -61,7 +61,7 @@ public class FastBreak extends Check {
|
|||||||
if (elapsedTime < elapsedTimeLimit && data.fastBreakBreakTime > 0L && data.fastBreakDamageTime > 0L
|
if (elapsedTime < elapsedTimeLimit && data.fastBreakBreakTime > 0L && data.fastBreakDamageTime > 0L
|
||||||
&& (player.getItemInHand().getType() != Material.SHEARS || block.getType() != Material.LEAVES)) {
|
&& (player.getItemInHand().getType() != Material.SHEARS || block.getType() != Material.LEAVES)) {
|
||||||
// If the buffer has been consumed.
|
// If the buffer has been consumed.
|
||||||
if (data.fastBreakBuffer == 0) {
|
if (data.fastBreakBuffer <= 0) {
|
||||||
// Increment the violation level (but using the original limit).
|
// Increment the violation level (but using the original limit).
|
||||||
data.fastBreakVL += elapsedTimeLimit - elapsedTime;
|
data.fastBreakVL += elapsedTimeLimit - elapsedTime;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user