Fix WorldManager#getWorld from bukkit World not mapping to worldname

This commit is contained in:
Ben Woo 2024-08-28 17:56:36 +08:00
parent 833c33e26e
commit ad3a6fc8fc

View File

@ -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);
}
/**