Additional work for Issue #8

This commit is contained in:
Tobias Ottenweller 2013-02-17 19:43:34 +01:00
parent 02262880da
commit 0dacfaa79b

View File

@ -44,7 +44,7 @@ public class PluginPortalListener implements Listener
playerLocation.setY(closestGate.getLocation().getY());
double distToClosestGate = closestGate.getLocation().distance(playerLocation);
if (distToClosestGate < 1.0)
if (distToClosestGate <= 5.0) // the player location is often not very accurate
{
gateAtLocation = closestGate;
}