From 0d3ef8e7a30806a691dc19d8b4bca729f8e900d7 Mon Sep 17 00:00:00 2001 From: themode Date: Sat, 14 Nov 2020 03:21:16 +0100 Subject: [PATCH] Synchronize biome registration --- .../java/net/minestom/server/world/biomes/BiomeManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/world/biomes/BiomeManager.java b/src/main/java/net/minestom/server/world/biomes/BiomeManager.java index a803c37a9..55904c7a5 100644 --- a/src/main/java/net/minestom/server/world/biomes/BiomeManager.java +++ b/src/main/java/net/minestom/server/world/biomes/BiomeManager.java @@ -28,7 +28,7 @@ public class BiomeManager { * * @param biome the biome to add */ - public void addBiome(Biome biome) { + public synchronized void addBiome(Biome biome) { this.biomes.put(biome.getId(), biome); } @@ -37,7 +37,7 @@ public class BiomeManager { * * @param biome the biome to remove */ - public void removeBiome(Biome biome) { + public synchronized void removeBiome(Biome biome) { this.biomes.remove(biome.getId()); }