betteranimalsplus icon indicating copy to clipboard operation
betteranimalsplus copied to clipboard

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

Open Cheaterpaul opened this issue 2 years ago • 0 comments

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 https://github.com/itsmeow/betteranimalsplus/blob/ecf9f8f612603e5b5fb938306321ebf8bded9bd2/forge/src/main/java/dev/itsmeow/betteranimalsplus/compat/curios/CuriosModCompat.java#L30

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

Cheaterpaul avatar Aug 30 '22 15:08 Cheaterpaul