mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +00:00
Fix NPE in UserData#getLogoutLocation (#4341)
This commit is contained in:
parent
0b6b0f9c61
commit
48532a0ae6
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue