Skip to content

Killing a mob disguised as player crashes the server with an NPE when 'Ticking player' #23

@Shnupbups

Description

@Shnupbups

Crash log here!
Version: 1.1.2
Using 'Mob Disguises' mod
Minecraft 1.18.1

I was on a singleplayer world, and had run /disguise @e as minecraft:player to disguise every entity as a player, and proceeded to punch a nearby cat (now disguised as a player) to death. The server crashed with an NPE when 'Ticking player', unable to get the networkHandler field in ServerPlayerEntity.

This also caused the world to report the same error anytime an attempt to load it up again was made, rendering it unplayable.

I understand that 1.1.2 is not the latest DisguiseLib, but it is the latest that works with the 'Mob Disguises' mod, and thus is what I used. I am unsure if the issue is reproducible on 1.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions