mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 19:33:51 -07:00
Implement getSpawnLocation().
This commit is contained in:
committed by
Dinner Bone
parent
bded4fb316
commit
0e821e60c9
@@ -51,6 +51,10 @@ public class CraftWorld implements World {
|
|||||||
return world.d(x, z);
|
return world.d(x, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Location getSpawnLocation() {
|
||||||
|
return new Location(this, world.m, world.e(world.m, world.o), world.o);
|
||||||
|
}
|
||||||
|
|
||||||
public Chunk getChunkAt(int x, int z) {
|
public Chunk getChunkAt(int x, int z) {
|
||||||
ChunkCoordinate loc = new ChunkCoordinate(x, z);
|
ChunkCoordinate loc = new ChunkCoordinate(x, z);
|
||||||
CraftChunk chunk = chunkCache.get(loc);
|
CraftChunk chunk = chunkCache.get(loc);
|
||||||
|
Reference in New Issue
Block a user