mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 12:31:59 +01:00
Fix WorldManager#getWorld from bukkit World not mapping to worldname
This commit is contained in:
parent
833c33e26e
commit
ad3a6fc8fc
@ -734,7 +734,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user