fix: first block after respawn at same Y level as spawn
This commit is contained in:
parent
257d2cacb9
commit
0ce5ac97f2
1 changed files with 6 additions and 6 deletions
|
|
@ -111,15 +111,15 @@ public class GeneratorCleanup {
|
||||||
// Regenerate first block
|
// Regenerate first block
|
||||||
Location spawn = generator.state.playerSpawn;
|
Location spawn = generator.state.playerSpawn;
|
||||||
if (spawn != null) {
|
if (spawn != null) {
|
||||||
// Place first block 6 blocks forward and 1 block up from spawn
|
// Place first block 6 blocks forward at same Y level as spawn
|
||||||
Location blockSpawn = spawn.clone();
|
Location blockSpawn = spawn.clone();
|
||||||
|
|
||||||
// Move block forward based on heading (6 blocks forward, 1 up)
|
// Move block forward based on heading (6 blocks forward, same height)
|
||||||
switch (dev.loki.loparkour.config.Option.HEADING) {
|
switch (dev.loki.loparkour.config.Option.HEADING) {
|
||||||
case NORTH -> blockSpawn.add(0, 1, -6);
|
case NORTH -> blockSpawn.add(0, 0, -6);
|
||||||
case SOUTH -> blockSpawn.add(0, 1, 6);
|
case SOUTH -> blockSpawn.add(0, 0, 6);
|
||||||
case WEST -> blockSpawn.add(-6, 1, 0);
|
case WEST -> blockSpawn.add(-6, 0, 0);
|
||||||
case EAST -> blockSpawn.add(6, 1, 0);
|
case EAST -> blockSpawn.add(6, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
generator.generateFirst(spawn, blockSpawn);
|
generator.generateFirst(spawn, blockSpawn);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue