mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixed a rare concurrency issue with world saving
This commit is contained in:
parent
0dfd40e407
commit
44c0029587
@ -57,6 +57,7 @@
|
|||||||
* Fixed #1855
|
* Fixed #1855
|
||||||
* Fixed some issues with AsyncWorldEdit
|
* Fixed some issues with AsyncWorldEdit
|
||||||
* Fixed some problems with unregistered or fake worlds
|
* Fixed some problems with unregistered or fake worlds
|
||||||
|
* Fixed a rare concurrency issue with world saving
|
||||||
|
|
||||||
## Release Candidate 13 (16 Jun 2020)
|
## Release Candidate 13 (16 Jun 2020)
|
||||||
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#13
|
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#13
|
||||||
|
@ -10,7 +10,6 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.ConcurrentMap;
|
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
@ -76,8 +75,8 @@ public class SlimefunRegistry {
|
|||||||
private final Set<String> chargeableBlocks = new HashSet<>();
|
private final Set<String> chargeableBlocks = new HashSet<>();
|
||||||
private final Map<String, WitherProof> witherProofBlocks = new HashMap<>();
|
private final Map<String, WitherProof> witherProofBlocks = new HashMap<>();
|
||||||
|
|
||||||
private final ConcurrentMap<UUID, PlayerProfile> profiles = new ConcurrentHashMap<>();
|
private final Map<UUID, PlayerProfile> profiles = new ConcurrentHashMap<>();
|
||||||
private final Map<String, BlockStorage> worlds = new HashMap<>();
|
private final Map<String, BlockStorage> worlds = new ConcurrentHashMap<>();
|
||||||
private final Map<String, BlockInfoConfig> chunks = new HashMap<>();
|
private final Map<String, BlockInfoConfig> chunks = new HashMap<>();
|
||||||
private final Map<SlimefunGuideLayout, SlimefunGuideImplementation> layouts = new EnumMap<>(SlimefunGuideLayout.class);
|
private final Map<SlimefunGuideLayout, SlimefunGuideImplementation> layouts = new EnumMap<>(SlimefunGuideLayout.class);
|
||||||
private final Map<EntityType, Set<ItemStack>> drops = new EnumMap<>(EntityType.class);
|
private final Map<EntityType, Set<ItemStack>> drops = new EnumMap<>(EntityType.class);
|
||||||
@ -234,7 +233,7 @@ public class SlimefunRegistry {
|
|||||||
return universalInventories;
|
return universalInventories;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConcurrentMap<UUID, PlayerProfile> getPlayerProfiles() {
|
public Map<UUID, PlayerProfile> getPlayerProfiles() {
|
||||||
return profiles;
|
return profiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user