Skip to content

IClientPacketHandler.handlePacket may have null NetClientHandler #1

@izstas

Description

@izstas

The method is being called like this:

((IClientPacketHandler)handler).handlePacket(packet, Minecraft.getMinecraft().getNetHandler(), Minecraft.getMinecraft());

The handler may be called before the player is logged in. In that case, getNetHandler() will return null. However, getting null as netHandler value may be unexpected for implementations of IClientPacketHandler, and this can be seen in ForgeMultipart.

I think this should be fixed in CCL, if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions