mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fire water ascension only if over max violations
This commit is contained in:
1 parent
c372890a44
commit
88feb782ac
1 file changed
+1
-1
@@ -411,10 +411,10 @@ public class Backend {
|
||||
int v = waterAscensionViolation.get(player.getName());
|
||||
if (v >= magic.WATER_ASCENSION_VIOLATION_MAX()) {
|
||||
waterAscensionViolation.put(player.getName(), 0);
|
||||
return new CheckResult(CheckResult.Result.FAILED, player.getName() + " stood on water " + v + " times (can't stand on " + block.getType() + " or " + block.getRelative(BlockFace.DOWN).getType() + ")");
|
||||
} else {
|
||||
waterAscensionViolation.put(player.getName(), v + 1);
|
||||
}
|
||||
return new CheckResult(CheckResult.Result.FAILED, player.getName() + " stood on water " + v + " times (can't stand on " + block.getType() + " or " + block.getRelative(BlockFace.DOWN).getType() + ")");
|
||||
} else {
|
||||
waterAscensionViolation.put(player.getName(), 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user