Lots of mobs in one area can cause players to move to fast in water.

This commit is contained in:
Adam committed 2012-05-03 16:41:54 -04:00
1 parent fbe417426f
commit b08ae8e60b
1 file changed
+1 -1
@@ -211,7 +211,7 @@ public class PlayerListener implements Listener {
if(!player.hasPermission("anticheat.waterwalk"))
{
//Otherwise check for normal walking speeds, making sure they aren't using 'jesus' hacks
if(!player.isSprinting() && !player.isFlying())
if(!player.isSprinting() && !player.isFlying() && player.getNearbyEntities(1, 1, 1).isEmpty())
{
tracker.increaseLevel(player,2);
plugin.log(player.getName()+" is walking too fast in water! XSpeed="+xd+" ZSpeed="+zd);