Skip to content

Commit

Permalink
Merge pull request #3097 from Multiverse/ben/mv5/getWorld-bukkit
Browse files Browse the repository at this point in the history
Fix WorldManager#getWorld from bukkit World not mapping to worldname
  • Loading branch information
benwoo1110 authored Aug 29, 2024
2 parents fe79580 + ad3a6fc commit d83ecd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ public boolean isUnloadedWorld(@Nullable String worldName) {
* @return The world if it exists.
*/
public Option<MultiverseWorld> getWorld(@Nullable World world) {
return Option.of(world).flatMap(this::getWorld);
return Option.of(world).map(World::getName).flatMap(this::getWorld);
}

/**
Expand Down

0 comments on commit d83ecd3

Please sign in to comment.