Curios API (Forge/NeoForge)

Curios API (Forge/NeoForge)

140M Downloads

[Fabric 1.16] Strange slot behavior when registering a slot type that has multiple slots

CursedFlames opened this issue ยท 0 comments

commented

Versions (Be specific, do not write "latest"):

  • Curios: 1.16.1-0.1
  • Fabric: loader_version=0.8.8+build.202, fabric_version=0.13.1+build.370-1.16 (I don't know which of these means what)

Also note that I'm in a dev environment.

Observed Behavior:

When a slot type is registered with multiple slots rather than just one, some slots will fail to show up, and an IndexOutOfBoundsException is logged whenever the curios inventory is opened. Some slots also fail to work when this happens; I was testing with two ring slots and a charm slot (and some unrelated slots that were unaffected) - the inventory was showing one ring and one charm slot, however the charm would always drop on closing the inventory if I put it in the charm slot, and I can shift-click a second ring into the charm slot. (Based on that, looks like it might be a client-only issue?)

Expected Behavior:

Multiple slots of the same type display as multiple slots rather than just one appearing

Steps to Reproduce:

  1. Register a slot type with a size of more than one e.g. two ring slots
  2. Open the curios inventory

Error that's logged on opening the curios inventory: https://hastebin.com/idigivariv.css