Curios API (Forge/NeoForge)

Curios API (Forge/NeoForge)

140M Downloads

The curios inventory cannot be opened when cosmetic slots are present

ochotonida opened this issue ยท 2 comments

commented

Versions:

  • Curios: 1.17.1-5.0.0.0
  • Forge: 37.0.22

Observed Behavior:

Clicking the curios button does nothing if a slot type has cosmetic slots enabled

Expected Behavior:

Clicking the curios button should open the curios inventory

Steps to Reproduce:

  1. Register a slot type and enable cosmetic slots
  2. Try to open the curios inventory

The curios container fails to initialize because CosmeticCurioSlot passes null as the renders parameter to its superclass' constructor, which causes a null pointer exception.

super(player, handler, index, identifier, xPosition, yPosition, null);

commented

The curios container fails to initialize because CosmeticCurioSlot passes null as the renders parameter to its superclass' constructor, which causes a null pointer exception.

Now that's quite silly of me.

commented

Fixed in 6e5aeee