Skip to content

Mobs cannot use crossbows anymore. #64

@Acuadragon100

Description

@Acuadragon100

As of 1.21.8, mobs are not able to use crossbows anymore. They try to fire the arrow, but no arrow ever appears.

This appears to be caused by onFireArrow in RangedWeaponItemMixin returning null instead of original::call whenever it's used by non-player entities (see RangedWeaponItemMixin#L45).

To reproduce:

  1. Spawn a pillager.
  2. Switch to survival mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions