Fix typo in 'sendposition' setting - allow both 'sendposition' and 'sendpositon' in case someone worked around it
This commit is contained in:
parent
166a5272fb
commit
053bd0e561
1 changed files with 3 additions and 1 deletions
|
|
@ -42,7 +42,9 @@ public class ClientUpdateComponent extends Component {
|
|||
s(jp, "account", p.getName());
|
||||
/* Don't leak player location for world not visible on maps, or if sendposition disbaled */
|
||||
DynmapWorld pworld = MapManager.mapman.worldsLookup.get(p.getWorld().getName());
|
||||
if(configuration.getBoolean("sendpositon", true) && (pworld != null) && pworld.sendposition) {
|
||||
/* Fix typo on 'sendpositon' to 'sendposition', keep bad one in case someone used it */
|
||||
if(configuration.getBoolean("sendposition", true) && configuration.getBoolean("sendpositon", true) &&
|
||||
(pworld != null) && pworld.sendposition) {
|
||||
s(jp, "world", p.getWorld().getName());
|
||||
s(jp, "x", pl.getX());
|
||||
s(jp, "y", pl.getY());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue