Attempt vehicles: reset fly data and fall height in the nofall check

if
in
vehicle.
This commit is contained in:
asofold 2012-08-12 06:01:41 +02:00
parent a2783dc0e6
commit 68bfea63c5

View File

@ -51,7 +51,8 @@ public class NoFall extends Check {
if (player.isInsideVehicle()){
// Emergency fix attempt:
data.noFallFallDistance = 0; // Hope the vehicle move does the rest.
data.clearFlyData(); // Hope the vehicle move does the rest.
player.setFallDistance(0.0f);
return;
}