Skip to content

ServerJoinEvent gets dispatched too early #604

@cxntered

Description

@cxntered

Original reporter & ticket id

No response

Category

API

Bug description

ServerJoinEvent gets dispatched too early in the join process (on 1.21 during the client handshake), causing mc.currentServer to return null.

Steps to reproduce

eventHandler<ServerJoinEvent> { _ ->
    println("currentServer: ${mc.currentServer}")
}

Anything else?

haven't tested on <1.21

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions