Skip to content

Commit

Permalink
fix spawnpoint location on first time load
Browse files Browse the repository at this point in the history
  • Loading branch information
steve4744 committed Nov 25, 2024
1 parent 2a9fa59 commit d4618ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tntrun/arena/structure/PlayerSpawn.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected void saveToConfig(FileConfiguration config) {
* @param arena config
*/
protected void loadFromConfig(FileConfiguration config) {
p1 = config.getVector("spawnpoint.p1", null);
p1 = config.isSet("spawnpoint.p1") ? config.getVector("spawnpoint.p1", null) : config.getVector("spawnpoint", null);
yaw = (float) config.getDouble("spawnpoint.yaw", 0.0);
pitch = (float) config.getDouble("spawnpoint.pitch", 0.0);
}
Expand Down

0 comments on commit d4618ad

Please sign in to comment.