mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-29 02:41:29 +01:00
Fix for vehicles
This commit is contained in:
parent
b68fa0cc34
commit
669f730fd4
@ -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: 1.05
|
version: 1.05a
|
||||||
|
|
||||||
softdepend: [ Permissions, CraftIRC ]
|
softdepend: [ Permissions, CraftIRC ]
|
||||||
|
|
||||||
|
@ -42,9 +42,13 @@ public class MovingPlayerMonitor extends PlayerListener {
|
|||||||
if(!event.isCancelled()) {
|
if(!event.isCancelled()) {
|
||||||
MovingData data = MovingData.get(event.getPlayer());
|
MovingData data = MovingData.get(event.getPlayer());
|
||||||
data.lastLocation = event.getTo();
|
data.lastLocation = event.getTo();
|
||||||
if(!event.getPlayer().isInsideVehicle()) {
|
if(event.getPlayer().isInsideVehicle()) {
|
||||||
|
data.setBackPoint = event.getTo();
|
||||||
|
}
|
||||||
|
else {
|
||||||
data.insideVehicle = false;
|
data.insideVehicle = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
check.updateVelocity(event.getPlayer().getVelocity(), data);
|
check.updateVelocity(event.getPlayer().getVelocity(), data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user