mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-02 00:29:59 +01:00
Random changes: vehicles. At least the version contains the build
number, now. :p
This commit is contained in:
parent
32b83148b4
commit
7fcd2897c3
@ -488,12 +488,17 @@ public class MovingListener implements Listener {
|
||||
|
||||
Location newTo = null;
|
||||
|
||||
// Emergency fix attempt:
|
||||
final MovingData data = MovingData.getData(player);
|
||||
data.clearFlyData();
|
||||
player.setFallDistance(0.0f);
|
||||
|
||||
if (morePacketsVehicle.isEnabled(player))
|
||||
// If the player is handled by the more packets vehicle check, execute it.
|
||||
newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo());
|
||||
else
|
||||
// Otherwise we need to clear his dataFactory.
|
||||
MovingData.getData(player).clearMorePacketsData();
|
||||
data.clearMorePacketsData();
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user