Synchronize biome registration

This commit is contained in:
themode 2020-11-14 03:21:16 +01:00
parent a56a9aba3e
commit 0d3ef8e7a3

View File

@ -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());
}