mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
Prevent amplification of violation level for moving check(s) in case
of only logging violations instead of cancelling them.
This commit is contained in:
parent
15e5367175
commit
67b5505d04
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 2.13b
|
||||
version: 2.13c
|
||||
|
||||
commands:
|
||||
nocheat:
|
||||
|
@ -98,6 +98,12 @@ public class RunningCheck {
|
||||
// Was one of the actions a cancel? Then do it
|
||||
if(cancel) {
|
||||
newToLocation = setBack;
|
||||
} else if(toOnGround || toInGround) {
|
||||
// In case it only gets logged, not stopped by NoCheat
|
||||
// Update the setback location at least a bit
|
||||
setBack.set(to);
|
||||
moving.jumpPhase = 0;
|
||||
|
||||
}
|
||||
} else {
|
||||
if((toInGround && from.y >= to.y) || CheckUtil.isLiquid(toType)) {
|
||||
|
Loading…
Reference in New Issue
Block a user