You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm looking to write some mod integration between my mods (PneumaticCraft and Modular Routers), and I'm using the Curios API to retrieve the player's Curios item handlers for automated insertion/extraction. However, I notice that these item handlers don't do any kind item filtering on what may be inserted, unlike when you attempt to insert items via GUI slots.
Am I missing something here, or this is an oversight in the mod?
For reference, my current approach is to build an item handler like this, using the Forge CombinedInvWrapper on all Curios item handlers for the given player:
This item handler seems happy to allow insertion of any item into the player's Curios slots, regardless of whether they can be inserted via inventory GUI.
The text was updated successfully, but these errors were encountered:
Hmm, at a quick glance, probably an oversight in the mod. I don't think anyone has tried to use Curios in this way before, at least none that has been brought up to me before. The problem is likely because Curios does validity checks outside of the item handlers themselves because it only expects to be interacted with directly through the container or the capability. I'll look into the best way to accommodate for your use-case.
I've just released Curios 5.3.0 for 1.20.1, which addresses this issue by consolidating all of the validation checks into the item handlers. Interacting with the item handlers directly, such as the example in the OP, should work correctly without any other changes or checks needed. Please let me know if there any other further issues or if the issue persists, and if there are any other questions or concerns about how to interact with the API.
Hi, I'm looking to write some mod integration between my mods (PneumaticCraft and Modular Routers), and I'm using the Curios API to retrieve the player's Curios item handlers for automated insertion/extraction. However, I notice that these item handlers don't do any kind item filtering on what may be inserted, unlike when you attempt to insert items via GUI slots.
Am I missing something here, or this is an oversight in the mod?
For reference, my current approach is to build an item handler like this, using the Forge
CombinedInvWrapper
on all Curios item handlers for the given player:This item handler seems happy to allow insertion of any item into the player's Curios slots, regardless of whether they can be inserted via inventory GUI.
The text was updated successfully, but these errors were encountered: