mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +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() {
|
||||
return holder.logoutLocation().location();
|
||||
final LazyLocation logoutLocation = holder.logoutLocation();
|
||||
return logoutLocation != null ? logoutLocation.location() : null;
|
||||
}
|
||||
|
||||
public void setLogoutLocation(final Location loc) {
|
||||
|
|
Loading…
Reference in a new issue