Skip to content

Commit

Permalink
Fix migration issue from older code, where biome world were not set up.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Sep 3, 2019
1 parent c928048 commit 1ccb856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/world/bentobox/biomes/BiomesAddonManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ private boolean migrateBiomes(World world)
biomesObject.setUniqueId(
addonName + "_" + biomesObject.getUniqueId().substring(world.getName().length() + 1));

// Update world, as in some situations it was not set.
biomesObject.setWorld(Util.getWorld(world).getName());

this.biomesDatabase.saveObject(biomesObject);
this.biomesCacheData.put(biomesObject.getUniqueId(), biomesObject);

Expand Down

0 comments on commit 1ccb856

Please sign in to comment.