изменен механизм установки спавна
This commit is contained in:
@@ -11,7 +11,10 @@ public interface World {
|
||||
WorldType getWorldType();
|
||||
|
||||
EntityLocation getSpawn();
|
||||
void setSpawn(EntityLocation location);
|
||||
void setSpawn(double x, double y, double z, float yaw, float pitch);
|
||||
default void setSpawn(double x, double y, double z) {
|
||||
setSpawn(x, y, z, 0f, 0f);
|
||||
}
|
||||
|
||||
Chunk getChunk(int x, int z);
|
||||
void setChunk(int x, int z, Chunk chunkSection);
|
||||
|
||||
@@ -34,9 +34,8 @@ public class SimpleWorld implements World {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSpawn(EntityLocation location) {
|
||||
this.spawn = location;
|
||||
this.spawn.setWorld(this);
|
||||
public void setSpawn(double x, double y, double z, float yaw, float pitch) {
|
||||
this.spawn = new EntityLocation(x, y, z, yaw, pitch, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user