mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Spawn loc headless
This commit is contained in:
parent
957dbecb3d
commit
aae47e103b
@ -63,7 +63,7 @@ public class CommandIrisStudioExplorerGenerator extends MortarCommand {
|
||||
|
||||
if (Iris.proj.isProjectOpen()) {
|
||||
generator = Iris.proj.getActiveProject().getActiveProvider().getData().getGeneratorLoader().load(args[0]);
|
||||
seed = Iris.proj.getActiveProject().getActiveProvider().getTarget().getWorld().getSeed();
|
||||
seed = Iris.proj.getActiveProject().getActiveProvider().getTarget().getWorld().seed();
|
||||
} else {
|
||||
generator = IrisDataManager.loadAnyGenerator(args[0]);
|
||||
}
|
||||
|
@ -18,11 +18,13 @@
|
||||
|
||||
package com.volmit.iris.engine.object.common;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.engine.IrisWorlds;
|
||||
import com.volmit.iris.util.collection.KList;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@ -82,4 +84,14 @@ public class IrisWorld {
|
||||
public void bind(World world) {
|
||||
bindWorld(this, world);
|
||||
}
|
||||
|
||||
public Location getSpawnLocation() {
|
||||
if(hasRealWorld())
|
||||
{
|
||||
return realWorld().getSpawnLocation();
|
||||
}
|
||||
|
||||
Iris.error("This world is not real yet, cannot get spawn location! HEADLESS!");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user