3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 05:20:05 +01:00

Fixed NPE in CraftPlayer.getBedSpawnLocation

Dieser Commit ist enthalten in:
Nathan Adams 2011-11-27 04:09:34 +00:00
Ursprung 402e3c26e1
Commit 8d49f500ec

Datei anzeigen

@ -534,7 +534,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
public Location getBedSpawnLocation() {
World world = getServer().getWorld(getHandle().spawnWorld);
if (world != null) {
if ((world != null) && (getHandle().getBed() != null)) {
return new Location(world, getHandle().getBed().x, getHandle().getBed().y, getHandle().getBed().z);
} else {
return null;