#1338: Introduce getRespawnLocation as a replacement for getBedSpawnLocation

By: Nothixal <nothixal@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2024-01-22 20:27:09 +11:00
parent 5165e97c74
commit e6b4a5f109
2 changed files with 20 additions and 0 deletions

View File

@@ -297,6 +297,11 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa
@Override
public Location getBedSpawnLocation() {
return getRespawnLocation();
}
@Override
public Location getRespawnLocation() {
NBTTagCompound data = getData();
if (data == null) return null;