mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Fix EssentialsSpawn not defaulting on default group (#4217)
Fix regression from #4072, tested in #essx-support on MOSS
This commit is contained in:
parent
0d71fe65f6
commit
bd9540cea3
@ -51,6 +51,9 @@ public class SpawnStorage implements IEssentialsModule, IConf {
|
|||||||
group = group.toLowerCase(Locale.ENGLISH);
|
group = group.toLowerCase(Locale.ENGLISH);
|
||||||
synchronized (spawns) {
|
synchronized (spawns) {
|
||||||
if (!spawns.containsKey(group)) {
|
if (!spawns.containsKey(group)) {
|
||||||
|
if (spawns.containsKey("default")) {
|
||||||
|
return spawns.get("default").location();
|
||||||
|
}
|
||||||
return getWorldSpawn();
|
return getWorldSpawn();
|
||||||
}
|
}
|
||||||
return spawns.get(group).location();
|
return spawns.get(group).location();
|
||||||
|
Loading…
Reference in New Issue
Block a user