mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Synchronize the world data holder.
This commit is contained in:
parent
96ab1b4533
commit
71179e3dfd
1 changed files with 4 additions and 2 deletions
|
@ -403,8 +403,10 @@ public class WorldsHolder {
|
||||||
|
|
||||||
if (worldsData.containsKey(worldNameLowered)) {
|
if (worldsData.containsKey(worldNameLowered)) {
|
||||||
OverloadedWorldHolder data = worldsData.get(worldNameLowered);
|
OverloadedWorldHolder data = worldsData.get(worldNameLowered);
|
||||||
data.updateDataSource();
|
synchronized (data) {
|
||||||
return data;
|
data.updateDataSource();
|
||||||
|
return data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue