Rip out vehicle limits due to issues with track switching.

This commit is contained in:
Adam committed 2012-05-04 15:36:06 -04:00
1 parent b1a120be11
commit 4c8733f4a4
1 file changed
+1 -10
@@ -238,16 +238,7 @@ public class PlayerListener implements Listener {
//Are they in a vehicle? //Are they in a vehicle?
if (player.getVehicle() != null) if (player.getVehicle() != null)
{ {
//If they are just entering it, skip the check. They are moving way too fast naturally. //Nothing to do
if(!ex.isEntering(player))
{
if(xd > 0.6D || zd > 0.6D)
{
tracker.increaseLevel(player,2);
plugin.log(player.getName()+" is using a vehicle too fast! XSpeed="+xd+" ZSpeed="+zd);
event.setTo(event.getFrom().clone());
}
}
} }
//Otherwise, are they sneaking? //Otherwise, are they sneaking?
else if(player.isSneaking()) else if(player.isSneaking())