mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-28 03:17:53 +01:00
Fix for vehicles
This commit is contained in:
parent
b68fa0cc34
commit
669f730fd4
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 1.05
|
||||
version: 1.05a
|
||||
|
||||
softdepend: [ Permissions, CraftIRC ]
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user