Fix WorldManager#getWorld from bukkit World not mapping to worldname
This commit is contained in:
parent
6611ec4457
commit
65288f4037
|
@ -745,7 +745,7 @@ public class WorldManager {
|
||||||
* @return The world if it exists.
|
* @return The world if it exists.
|
||||||
*/
|
*/
|
||||||
public Option<MultiverseWorld> getWorld(@Nullable World world) {
|
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