mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-06 20:18:00 +02: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
|
author: Evenprime
|
||||||
|
|
||||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||||
version: 2.13b
|
version: 2.13c
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
nocheat:
|
nocheat:
|
||||||
|
@ -98,6 +98,12 @@ public class RunningCheck {
|
|||||||
// Was one of the actions a cancel? Then do it
|
// Was one of the actions a cancel? Then do it
|
||||||
if(cancel) {
|
if(cancel) {
|
||||||
newToLocation = setBack;
|
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 {
|
} else {
|
||||||
if((toInGround && from.y >= to.y) || CheckUtil.isLiquid(toType)) {
|
if((toInGround && from.y >= to.y) || CheckUtil.isLiquid(toType)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user