Better Animals Plus

Better Animals Plus

22M Downloads

Cape can not be equipped to non-players with Curios loaded

Cheaterpaul opened this issue ยท 0 comments

commented

Describe what you were doing before the crash

The Curios compatibility predicate casts produces a Class cast exception because it does not check for player

ItemCape.can_equip = (stack, armorType, entity) -> !CuriosApi.getCuriosHelper().findEquippedCurio(s -> s.getItem() instanceof ItemCape, (Player) entity).isPresent();

To Reproduce

Steps to reproduce the behavior (if possible):

  1. Have a hunter/vampire minion
  2. Open inventory of the minion
  3. Equip cape as armor
  4. See error

Crash Log (REQUIRED)

crash-report.txt

Versions

  • Minecraft Version: 1.16.5
  • Architectury API Version: 1.32.66
  • Platform (Forge/Fabric): Forge
  • Forge Version: 36.2.39
  • Fabric Loader Version:
  • Fabric API Version:
  • Mod Version: 1.16.5-11.0.5

Additional context

Involved mods Curios and Vampirism