Only clear fly/nofall data if changing form/to creative mode.

This commit is contained in:
asofold 2012-10-02 15:51:58 +02:00
parent 74b3c1c84f
commit 8b92bd74dc

View File

@ -230,9 +230,11 @@ public class MovingListener implements Listener {
* \____|_| |_|\__,_|_| |_|\__, |\___|
* |___/
*/
final MovingData data = MovingData.getData(event.getPlayer());
data.clearFlyData();
data.clearMorePacketsData();
if (event.getPlayer().getGameMode() == GameMode.CREATIVE || event.getNewGameMode() == GameMode.CREATIVE){
final MovingData data = MovingData.getData(event.getPlayer());
data.clearFlyData();
data.clearMorePacketsData();
}
}
/**