Also take into account breaking vehicles and exempt them from movement violations temporarily

This commit is contained in:
h31ix committed 2013-01-02 21:36:10 -05:00
1 parent 7977e1c249
commit c95aee4d9d
3 files changed
+13 -2

No files matched your search

@@ -228,7 +228,7 @@ public class Backend {
}
public boolean checkYSpeed(Player player, double y) {
if (!player.isInsideVehicle() && !player.isSleeping() && y > magic.Y_SPEED_MAX && !isDoing(player, velocitized, magic.VELOCITY_TIME) && !player.hasPotionEffect(PotionEffectType.JUMP)) { return true; }
if (!isMovingExempt(player) && !player.isInsideVehicle() && !player.isSleeping() && y > magic.Y_SPEED_MAX && !isDoing(player, velocitized, magic.VELOCITY_TIME) && !player.hasPotionEffect(PotionEffectType.JUMP)) { return true; }
return false;
}