1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-05 14:18:21 +02:00

Synchronize the world data holder.

This commit is contained in:
ElgarL
2012-09-10 17:46:01 +01:00
parent 9d820c94a6
commit b4460f8bac

View File

@@ -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;