Fix WorldManager#getWorld from bukkit World not mapping to worldname

This commit is contained in:
Ben Woo 2023-09-21 17:31:40 +08:00
parent 6611ec4457
commit 65288f4037
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8
1 changed files with 1 additions and 1 deletions

View File

@ -745,7 +745,7 @@ public class WorldManager {
* @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);
}
/**