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
Forge's capabilities support fetching a capability instance for the "null" side. In the case of inventories, this is generally defined to return the "whole" inventory of a tile (rather than a subset of slots like other sides do).
However, Titanium's MultiInventoryComponent implementation always returns an empty LazyOptional. From my reading of the code, this is because the add method only rebuilds the lookup for the cardinal directions, and not the null side:
This means that mods which use getCapability(ITEM_HANDLER_CAPABILITY) (rather than getCapability(ITEM_HANDLER_CAPABILITY, side) will not be able to insert into Titanium's inventories.
The text was updated successfully, but these errors were encountered:
Forge's capabilities support fetching a capability instance for the "null" side. In the case of inventories, this is generally defined to return the "whole" inventory of a tile (rather than a subset of slots like other sides do).
However, Titanium's
MultiInventoryComponent
implementation always returns an emptyLazyOptional
. From my reading of the code, this is because theadd
method only rebuilds the lookup for the cardinal directions, and not thenull
side:Titanium/src/main/java/com/hrznstudio/titanium/component/inventory/MultiInventoryComponent.java
Lines 44 to 49 in 279f681
This means that mods which use
getCapability(ITEM_HANDLER_CAPABILITY)
(rather thangetCapability(ITEM_HANDLER_CAPABILITY, side)
will not be able to insert into Titanium's inventories.The text was updated successfully, but these errors were encountered: