mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Fix bug preventing non bed-reliant spawns from being successfully set. Fixes BUKKIT-2708
This commit is contained in:
parent
d16f8c5e65
commit
14f4bd9024
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ public abstract class ServerConfigurationManagerAbstract {
|
||||||
boolean isBedSpawn = false;
|
boolean isBedSpawn = false;
|
||||||
CraftWorld cworld = (CraftWorld) this.server.server.getWorld(entityplayer.spawnWorld);
|
CraftWorld cworld = (CraftWorld) this.server.server.getWorld(entityplayer.spawnWorld);
|
||||||
if (cworld != null && chunkcoordinates != null) {
|
if (cworld != null && chunkcoordinates != null) {
|
||||||
chunkcoordinates1 = EntityHuman.getBed(cworld.getHandle(), chunkcoordinates, flag);
|
chunkcoordinates1 = EntityHuman.getBed(cworld.getHandle(), chunkcoordinates, flag1);
|
||||||
if (chunkcoordinates1 != null) {
|
if (chunkcoordinates1 != null) {
|
||||||
isBedSpawn = true;
|
isBedSpawn = true;
|
||||||
location = new Location(cworld, chunkcoordinates1.x + 0.5, chunkcoordinates1.y, chunkcoordinates1.z + 0.5);
|
location = new Location(cworld, chunkcoordinates1.x + 0.5, chunkcoordinates1.y, chunkcoordinates1.z + 0.5);
|
||||||
|
|
Loading…
Add table
Reference in a new issue