mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Fix NPE in UserData#getLogoutLocation (#4341)
This commit is contained in:
parent
0b6b0f9c61
commit
48532a0ae6
@ -277,7 +277,8 @@ public abstract class UserData extends PlayerExtension implements IConf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Location getLogoutLocation() {
|
public Location getLogoutLocation() {
|
||||||
return holder.logoutLocation().location();
|
final LazyLocation logoutLocation = holder.logoutLocation();
|
||||||
|
return logoutLocation != null ? logoutLocation.location() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLogoutLocation(final Location loc) {
|
public void setLogoutLocation(final Location loc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user