geforkt von Mirrors/Paper
[Bleeding] Fix NPE in getBedSpawnLocation. Fixes BUKKIT-1949
By: EdGruberman <ed@rjump.com>
Dieser Commit ist enthalten in:
Ursprung
7555571424
Commit
19171265b9
@ -198,6 +198,8 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa
|
|||||||
|
|
||||||
public Location getBedSpawnLocation() {
|
public Location getBedSpawnLocation() {
|
||||||
NBTTagCompound data = getData();
|
NBTTagCompound data = getData();
|
||||||
|
if (data == null) return null;
|
||||||
|
|
||||||
if (data.hasKey("SpawnX") && data.hasKey("SpawnY") && data.hasKey("SpawnZ")) {
|
if (data.hasKey("SpawnX") && data.hasKey("SpawnY") && data.hasKey("SpawnZ")) {
|
||||||
String spawnWorld = data.getString("SpawnWorld");
|
String spawnWorld = data.getString("SpawnWorld");
|
||||||
if (spawnWorld.equals("")) {
|
if (spawnWorld.equals("")) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren