Materialized Item or [Item] cards do not contain the size information
druidbruce opened this issue ยท 1 comments
Issue type:
- ๐ Bug
Short description:
put any Item
card into the materializer and the size
information from output card of the materializer is always reset to 1
Steps to reproduce the problem:
- example1
- put something inside slot 0 of a chest
- put an inventory over the chest
- get the slot item aspect card from the reader
- put the aspect card into a display panel, now the card should show correctly how much the size is
- to furthur confirm the size, pass the card into operator
size :: Item -> Int
chest_card :: card from the slot item aspect
size_card = apply size chest_card :: Int
- now
size_card
should correclty show thesize
information of theItem
card (chest_card
) - put
chest_card
into a materialiizer input - get the output of the materialiizer
materialized_card :: card of materializer output
msize_card = apply size materialized_card :: Int
- now put
msize_card
into a display panel, it shows 1 regardless of whatsize_card
shows (what the originalItem
card should have)
- example2
- replace step 1-3 from example1 with an operator that generates item with size
Opsize :: Item -> Int -> Item(with size)
item_card :: Item
int_card :: Int
newItem_card = apply2 Opsize item_card int_card :: Item
- simply replace
chest_card
withnewItem_card
, the results will be the same
- example3
do the exact same thing as example 1 or 2, but instead ofItem
use[Item]
, which turns out in the end the same result as theItem
looses itssize
info
Expected behaviour:
at step 9, msize_card == size_card
should be True
(materialized card should keep their size
information) as tested this works in 1.12, therefore we considered it to be not intentional and is a bug
however, I can confirm that when materializing Recipe
cards, the size
does not get reset to 1, as you can do so by checking
Recipe_input_ingredients :: Recipe -> Ingredient
Ingredient_items :: Ingredient -> [Item]
size :: Item -> Int
map :: (a -> b) -> [a] -> [b]
size_L = map size :: [Item] -> [Int]
R_iL = pipe Recipe_input_ingredients Ingredient_items :: Recipe -> [Item]
R_isL = pipe RiL size_L :: Recipe -> [Int]
we can find that even a materialized Recipe
when applied to R_isL
outputs a correct [Int]
Versions:
-
This mod:
IntegratedDynamics-1.16.5-1.7.2
IntegratedTerminals-1.16.5-1.1.3
IntegratedCrafting-1.16.5-1.0.13
IntegratedTunnels-1.16.5-1.7.0
CyclopsCore-1.16.5-1.11.4
CommonCapabilities-1.16.5-2.5.6 -
Minecraft:
1.16.5 -
Forge:
36.1.2
Log file:
not required