mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Set default viewing distance to 15
This commit is contained in:
@@ -63,6 +63,11 @@ import org.apollo.util.security.PlayerCredentials;
|
||||
*/
|
||||
public final class Player extends Mob {
|
||||
|
||||
/**
|
||||
* The default viewing distance, in tiles.
|
||||
*/
|
||||
private static final int DEFAULT_VIEWING_DISTANCE = 15;
|
||||
|
||||
/**
|
||||
* The current amount of appearance tickets.
|
||||
*/
|
||||
@@ -211,7 +216,7 @@ public final class Player extends Mob {
|
||||
/**
|
||||
* The current maximum viewing distance of this Player.
|
||||
*/
|
||||
private int viewingDistance = 1;
|
||||
private int viewingDistance = DEFAULT_VIEWING_DISTANCE;
|
||||
|
||||
/**
|
||||
* A flag indicating if the player is withdrawing items as notes.
|
||||
@@ -707,7 +712,7 @@ public final class Player extends Mob {
|
||||
* Resets this player's viewing distance.
|
||||
*/
|
||||
public void resetViewingDistance() {
|
||||
viewingDistance = 1;
|
||||
viewingDistance = DEFAULT_VIEWING_DISTANCE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user