mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-03 13:17:38 +02:00
Synchronize the world data holder.
This commit is contained in:
@@ -403,9 +403,11 @@ public class WorldsHolder {
|
|||||||
|
|
||||||
if (worldsData.containsKey(worldNameLowered)) {
|
if (worldsData.containsKey(worldNameLowered)) {
|
||||||
OverloadedWorldHolder data = worldsData.get(worldNameLowered);
|
OverloadedWorldHolder data = worldsData.get(worldNameLowered);
|
||||||
|
synchronized (data) {
|
||||||
data.updateDataSource();
|
data.updateDataSource();
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user