Prevent amplification of violation level for moving check(s) in case

of only logging violations instead of cancelling them.
This commit is contained in:
Evenprime 2011-10-23 21:20:17 +02:00
parent 15e5367175
commit 67b5505d04
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@ name: NoCheat
author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheat
version: 2.13b
version: 2.13c
commands:
nocheat:

View File

@ -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)) {