mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-22 15:39:22 +01:00
todo for CraftingModuleItem store
This commit is contained in:
parent
af86cde133
commit
ddc55003b6
1 changed files with 4 additions and 1 deletions
|
@ -264,6 +264,9 @@ public class CraftingModuleItem extends ModuleItem {
|
|||
var equalityTypes = ItemFilter.getEqualityTypes(tile);
|
||||
var allCrafts = tile.getActiveCrafts();
|
||||
for (var craft : allCrafts.stream().filter(c -> c.moduleSlot == slot && !c.getTravelingIngredient(stack, equalityTypes).isEmpty()).toList()) {
|
||||
// TODO currently, we always shrink by the size of stack, even if the container can't actually accept the entire stack
|
||||
// some containers' getAvailableDestination method returns an incorrect value (because it's a heuristic), so parts of this stack might be sent back,
|
||||
// in which case we have to add it back to the collection of items we need to request (as an item stack since we won't have the lock anymore)
|
||||
var traveling = craft.getTravelingIngredient(stack, equalityTypes);
|
||||
traveling.shrink(stack.getCount());
|
||||
if (traveling.isEmpty())
|
||||
|
|
Loading…
Reference in a new issue