This commit is contained in:
H31IX committed 2012-05-27 21:41:11 -04:00
commit 21df280f4c
1 file changed
+6 -2
@@ -146,7 +146,7 @@ public class Backend
public boolean checkYSpeed(Player player,double y)
{
if(!player.isFlying() && player.getVehicle() == null && y > Y_SPEED_MAX)
if(/*!player.isFlying() &&*/ player.getVehicle() == null && y > Y_SPEED_MAX)
{
return true;
}
@@ -190,7 +190,7 @@ public class Backend
public boolean checkXZSpeed(Player player,double x,double z)
{
if(!isMovingExempt(player) && player.getVehicle() == null)
if(!isSpeedExempt(player) && player.getVehicle() == null)
{
if(!player.isSprinting())
{
@@ -661,6 +661,10 @@ public class Backend
return movingExempt.contains(player.getName()) || player.isFlying();
}
public boolean isSpeedExempt(Player player) {
return movingExempt.contains(player.getName());
}
public void logDroppedItem(final Player player)
{
logEvent(droppedItem,player,DROPPED_ITEM_TIME);