mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Next attempt to fix vehicles.
This commit is contained in:
parent
68bfea63c5
commit
32b83148b4
@ -51,7 +51,7 @@ public class NoFall extends Check {
|
||||
|
||||
if (player.isInsideVehicle()){
|
||||
// Emergency fix attempt:
|
||||
data.clearFlyData(); // Hope the vehicle move does the rest.
|
||||
data.clearFlyData();
|
||||
player.setFallDistance(0.0f);
|
||||
return;
|
||||
}
|
||||
@ -123,6 +123,10 @@ public class NoFall extends Check {
|
||||
*/
|
||||
public void handlePacket(final EntityPlayer player, final Packet10Flying packet) {
|
||||
final MovingData data = MovingData.getData(player.getBukkitEntity());
|
||||
|
||||
// Attempt to fix vehicle problems:
|
||||
if (player.getBukkitEntity().isInsideVehicle()) return;
|
||||
|
||||
data.noFallWasOnGroundClient = data.noFallOnGroundClient;
|
||||
data.noFallWasOnGroundServer = data.noFallOnGroundServer;
|
||||
data.noFallOnGroundClient = packet.g;
|
||||
|
Loading…
Reference in New Issue
Block a user