Skip to content

EmptyWorld.INSTANCE has a null currentDimension() because its static initializer has a cyclic dependency with EmptyDimension #1894

Description

@NotStirred

This bug is currently not that bad, but if a chunky or a plugin were to ever classload EmptyDimension before EmptyWorld, currentDimension could be null which crashes everything.

Not really sure how to fix this, I guess we could give EmptyDimension a null world, but that means possible NPEs if its world is ever accessed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions