Skip to content

Pet Home throws NPE during attack on pet (caught by Neruina, server doesn't fully crash) #12

Description

@DrSigma4164

The exception is thrown by the Pet Home mod, but it is intercepted by Neruina, so instead of crashing the server, Neruina cancels the tick and prints an error message in chat/logs.

Image

When an entity attacks a pet, Pet Home checks friendly fire rules. At this point, a NullPointerException occurs because PetHomeConfig.canHurtPetItem is null.

Log: https://gist.github.com/929d5c4130ac80b336da2ed4913e08b7.git

Minecraft: 1.20.1
Forge: 47.4.0
Pet Home: 1.0.6
Neruina: 2.1.2
Side: Dedicated server

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