Random changes: vehicles. At least the version contains the build

number, now. :p
This commit is contained in:
asofold 2012-08-12 06:21:54 +02:00
parent 32b83148b4
commit 7fcd2897c3

View File

@ -488,12 +488,17 @@ public class MovingListener implements Listener {
Location newTo = null; Location newTo = null;
// Emergency fix attempt:
final MovingData data = MovingData.getData(player);
data.clearFlyData();
player.setFallDistance(0.0f);
if (morePacketsVehicle.isEnabled(player)) if (morePacketsVehicle.isEnabled(player))
// If the player is handled by the more packets vehicle check, execute it. // If the player is handled by the more packets vehicle check, execute it.
newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo()); newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo());
else else
// Otherwise we need to clear his dataFactory. // Otherwise we need to clear his dataFactory.
MovingData.getData(player).clearMorePacketsData(); data.clearMorePacketsData();