Additional work for Issue #8
This commit is contained in:
parent
02262880da
commit
0dacfaa79b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user