mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 10:36:06 +01:00
Fixed issue where Multiverse always checks block safety to fix world spawns on startup/reload.
This commit is contained in:
parent
876456b932
commit
58eeecbcb8
@ -71,11 +71,15 @@ public class MVWorld implements MultiverseWorld {
|
||||
final Location worldSpawnLocation = readSpawnFromWorld(world);
|
||||
this.props.setValidator("spawn", spawnValidator);
|
||||
if (this.props.spawnLocation instanceof NullLocation) {
|
||||
this.props.spawnLocation = new SpawnLocation(worldSpawnLocation);
|
||||
final SpawnLocation newLoc = new SpawnLocation(worldSpawnLocation);
|
||||
this.props.spawnLocation = newLoc;
|
||||
world.setSpawnLocation(newLoc.getBlockX(), newLoc.getBlockY(), newLoc.getBlockZ());
|
||||
} else {
|
||||
this.props.spawnLocation.setWorld(world);
|
||||
if (plugin.getBlockSafety().playerCanSpawnHereSafely(this.props.spawnLocation)) {
|
||||
this.props.spawnLocation = new SpawnLocation(worldSpawnLocation);
|
||||
final SpawnLocation newLoc = new SpawnLocation(worldSpawnLocation);
|
||||
this.props.spawnLocation = newLoc;
|
||||
world.setSpawnLocation(newLoc.getBlockX(), newLoc.getBlockY(), newLoc.getBlockZ());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user