Skip to content

Crow food crashes game/servers when no "owner" is detected #115

Description

@Blkandwhtgaming

I believe if crow food is created without a "thrown owner" and a crow finds it, it will crash the server or client.

Use reported crow food was created and had no inventory space for it. Upon trying to open inventory to drop somethign to pick it up, the game crashed. We believe it was due to the crow nearby trying to eat/tame without knowing who threw the seeds.

Related issue also seems to support that if the owner leaves, the crow can crash the server:
#109
LOG ENTRY:

Time: 2026-04-12 18:36:11
Description: Ticking entity

java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.getUUID()" because "itemThrower" is null
at TRANSFORMER/hexerei@0.5/net.joefoxe.hexerei.client.renderer.entity.custom.CrowEntity.onGetItem(CrowEntity.java:1717) ~[hexerei-0.5.0.3.jar%23287!/:?] {re:classloading,re:mixin}
at TRANSFORMER/hexerei@0.5/net.joefoxe.hexerei.client.renderer.entity.custom.CrowEntity$CrowGatherItems.tick(CrowEntity.java:2185) ~[hexerei-0.5.0.3.jar%23287!/:?] {re:classloading}
at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.ai.goal.WrappedGoal.tick(WrappedGoal.java:65) ~[client-1.21.1-20240808.144430-srg.jar%23253!/:?] {re:mixin,re:classloading}
at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.ai.goal.GoalSelector.tickRunningGoals(GoalSelector.java:112) ~[client-1.21.1-20240808.144430-srg.jar%23253!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.ai.goal.GoalSelector.tick(GoalSelector.java:103) ~[client-1.21.1-20240808.144430-srg.jar%23253!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}

hexeri-crash.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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