mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 11:20:09 +01:00
Synchronize biome registration
This commit is contained in:
parent
a56a9aba3e
commit
0d3ef8e7a3
@ -28,7 +28,7 @@ public class BiomeManager {
|
|||||||
*
|
*
|
||||||
* @param biome the biome to add
|
* @param biome the biome to add
|
||||||
*/
|
*/
|
||||||
public void addBiome(Biome biome) {
|
public synchronized void addBiome(Biome biome) {
|
||||||
this.biomes.put(biome.getId(), biome);
|
this.biomes.put(biome.getId(), biome);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ public class BiomeManager {
|
|||||||
*
|
*
|
||||||
* @param biome the biome to remove
|
* @param biome the biome to remove
|
||||||
*/
|
*/
|
||||||
public void removeBiome(Biome biome) {
|
public synchronized void removeBiome(Biome biome) {
|
||||||
this.biomes.remove(biome.getId());
|
this.biomes.remove(biome.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user