Skip to content

World provider close function calling #1295

Description

@ShockedPlot7560

Currently, by providing a custom world provider, the Close function is called more than once (one for each dimension registered).

For LevelDB, it didn't raise an error as the doc say it allow multiple call to Close, it's not the purpose of a Close function in general.

(e.g. you opened an http connection or whatever in your provider, you expect from the Close function to close this connection)

Making the Close function called only once per world could lead to BC breaking ; an update to the documentation may therefore be necessary to clarify this point for anyone wishing to implement their own logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions