Fix for vehicles

This commit is contained in:
Evenprime 2011-06-24 13:41:48 +02:00
parent b68fa0cc34
commit 669f730fd4
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,7 @@ name: NoCheat
author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheat
version: 1.05
version: 1.05a
softdepend: [ Permissions, CraftIRC ]

View File

@ -42,9 +42,13 @@ public class MovingPlayerMonitor extends PlayerListener {
if(!event.isCancelled()) {
MovingData data = MovingData.get(event.getPlayer());
data.lastLocation = event.getTo();
if(!event.getPlayer().isInsideVehicle()) {
if(event.getPlayer().isInsideVehicle()) {
data.setBackPoint = event.getTo();
}
else {
data.insideVehicle = false;
}
check.updateVelocity(event.getPlayer().getVelocity(), data);
}
}