Closed met4000 closed 3 years ago
Thanks for reporting!
@rubensworks I noticed you added the mc-1.16
label; I tested this in 1.12.2, and while I believe this happens in 1.16 as well I haven't confirmed it.
( Ignore this if you did testing yourself to check it :) )
Haven't done testing yet. 1.12 is not maintained anymore, which is why I would only fix/change it in 1.16.
I have reproduced the same results in 1.16
Thanks for checking!
Note to self: this is more complex than I anticipated.
It looks like the exactQuantity
flag is not working properly inside the IngredientStorageHelpers
. First do in-depth (unit) tests to see if things work correctly there, then translate to IT.
Another note to self: it looks like exactQuantity
was implemented in IngredientStorageHelpers
in the same way as the checkStackSize
flag, which leads to conflicting semantics in IT.
IT interprets exactQuantity
as to exact quantity of a given slot, while CC interprets it as the exact quantity across the whole storage.
The IT-interpretation was in fact the intended one, and the interpretation in CC is incorrect, but serves its uses at the moment.
Since the original exactQuantity
interpretation is not trivial to implement, I intend to remove the aspect setting, and open a separate issue as feature request. (unless I come up with another idea by tomorrow)
Can it be implemented purely using a predicate when using slot-based transfer?
TL;DR, exact quantity
is removed, and the description of check stack size
is improved.
Issue type:
Short description:
See original conversation on the discord; initial question: https://discord.com/channels/386052815128100865/386054223688630272/814828281982353449 initial response: https://discord.com/channels/386052815128100865/386054223688630272/814889692289826816
The
exact amount
andcheck stack size
aspects settings of item importers and exporters do not work as intended. More precisely,check stack size
seems to work asexact amount
should, andexact amount
seems to do nothing.This has only been tested with item tunnels and using the
export item
aspect, but it is highly likely that this problem also occurs with other item tunnel aspects (and other tunnel types such as fluid tunnels) that share those two aspect settings.Steps to reproduce the problem:
Skip steps 3 and 4 if you instead hard-code the item variable card using a logic programmer.
slot item
aspect (set to slot 0) of the inventory readerexport item
aspect of the item exporterThe same setup was used to test item importers, but instead with an item importer on the input chest (step 1) and a item interface on the output chest (step 2).
To test the behaviour, 2 gold blocks were placed in the
reference chest
(i.e. the item variable card had a value of '2 gold blocks'), and thetransfer rate
andticks/op
of the item tunnel were both set to20
. The two aspect settings were then set, and the behaviour when placing a stack of 64 gold blocks into the input chest was recorded.exact amount
check stack size
20
, followed by 1 stack of4
20
(the remaining stack of4
is not transferred)20
, followed by 1 stack of4
20
(the remaining stack of4
is not transferred)Expected behaviour:
From @rubensworks (see this message on the discord):
However; Given that the 'normal' behaviour (with both of these setting set to
false
) seems to allow it to transfer 'up to' the set stack size,check stack size
seems to be identical to the normal behaviour and hence redundant. I would propose leavingexact amount
as is, but makingcheck stack size
instead define whether the "item's stack size" ortransfer rate
is used to determine the... transfer rate. I.e.check stack size = false
=>transfer rate
-worth of items is transported, andcheck stack size = true
=> "item's stack size"-worth of items is transported. As this does suggest a change to intended behaviour, it may be appropriate to instead make this its own issue.Versions:
(retrieved using the in-game mod list from the pause menu)
Log file:
N/A