Skip to content

Commit 9dbbc18

Browse files
committed
Merge remote-tracking branch 'origin/master-1.19-lts' into master-1.20-lts
2 parents 5f05a1a + ebe9009 commit 9dbbc18

4 files changed

Lines changed: 32 additions & 9 deletions

File tree

CHANGELOG-1.19.2.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# Changelog for Minecraft 1.19.2
22
All notable changes to this project will be documented in this file.
33

4+
<a name="1.19.2-1.6.15"></a>
5+
## [1.19.2-1.6.15](/compare/1.19.2-1.6.14...1.19.2-1.6.15) - 2026-01-17 14:24:55
6+
7+
8+
### Changed
9+
* Use a different icon for showin to-craft items
10+
11+
### Fixed
12+
* Fix flattened plans showing too high counts on parallelized plans, Closes #190
13+
414
<a name="1.19.2-1.6.14"></a>
5-
## [1.19.2-1.6.14](/compare/1.19.2-1.6.13...1.19.2-1.6.14) - 2025-11-24 16:49:25
15+
## [1.19.2-1.6.14](/compare/1.19.2-1.6.13...1.19.2-1.6.14) - 2025-11-24 16:49:25 +0100
616

717

818
### Fixed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.19.4 or higher.
3+
4+
Changes:
5+
* Use a different icon for showin to-craft items
6+
7+
Fixes:
8+
* Fix flattened plans showing too high counts on parallelized plans, Closes #190

src/main/java/org/cyclops/integratedterminals/api/terminalstorage/crafting/TerminalCraftingPlanStatic.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
import org.cyclops.commoncapabilities.api.ingredient.PrototypedIngredient;
1111

1212
import javax.annotation.Nullable;
13-
import java.util.Collection;
14-
import java.util.List;
15-
import java.util.Map;
13+
import java.util.*;
1614

1715
/**
1816
* @author rubensworks
@@ -141,7 +139,8 @@ public void setError(String unlocalizedError) {
141139
public ITerminalCraftingPlanFlat<I> flatten() {
142140
// Group dependencies by prototype
143141
IndexedEntries indexedEntries = new IndexedEntries();
144-
groupDependenciesByPrototype(indexedEntries, this);
142+
Set<I> handledPlans = new HashSet<>();
143+
groupDependenciesByPrototype(indexedEntries, handledPlans, this);
145144

146145
// Make plan
147146
TerminalCraftingPlanFlatStatic<I> planFlat = new TerminalCraftingPlanFlatStatic<>(
@@ -203,7 +202,13 @@ public Collection<TerminalCraftingPlanFlatStatic.Entry> getEntries() {
203202
}
204203
}
205204

206-
protected static <I> void groupDependenciesByPrototype(IndexedEntries indexedEntries, ITerminalCraftingPlan<I> plan) {
205+
protected static <I> void groupDependenciesByPrototype(IndexedEntries indexedEntries, Set<I> handledPlans, ITerminalCraftingPlan<I> plan) {
206+
// Since jobs can have multiple dependents due to job splitting, we only consider each job once during flattening.
207+
if (handledPlans.contains(plan.getId())) {
208+
return;
209+
}
210+
handledPlans.add(plan.getId());
211+
207212
// Determine outputs that are invalid or will be crafted
208213
for (IPrototypedIngredient<?, ?> output : plan.getOutputs()) {
209214
TerminalCraftingPlanFlatStatic.Entry entry = indexedEntries.get(output);
@@ -221,7 +226,6 @@ protected static <I> void groupDependenciesByPrototype(IndexedEntries indexedEnt
221226
if (plan.getStatus() == TerminalCraftingJobStatus.QUEUEING
222227
|| plan.getStatus() == TerminalCraftingJobStatus.PENDING_DEPENDENCIES
223228
|| plan.getStatus() == TerminalCraftingJobStatus.PENDING_INPUTS
224-
|| plan.getStatus() == TerminalCraftingJobStatus.CRAFTING
225229
|| plan.getStatus() == TerminalCraftingJobStatus.UNSTARTED) {
226230
entry.setQuantityToCraft(entry.getQuantityToCraft() + quantity);
227231
}
@@ -248,7 +252,7 @@ protected static <I> void groupDependenciesByPrototype(IndexedEntries indexedEnt
248252

249253
// Recurse into dependencies
250254
for (ITerminalCraftingPlan<I> dependency : plan.getDependencies()) {
251-
groupDependenciesByPrototype(indexedEntries, dependency);
255+
groupDependenciesByPrototype(indexedEntries, handledPlans, dependency);
252256
}
253257
}
254258

src/main/java/org/cyclops/integratedterminals/client/gui/container/component/GuiCraftingPlanFlat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
1313
import net.minecraft.network.chat.Component;
1414
import net.minecraft.world.item.ItemStack;
15+
import net.minecraft.world.item.Items;
1516
import net.minecraft.world.level.block.Blocks;
1617
import org.apache.commons.lang3.time.DurationFormatUtils;
1718
import org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient;
@@ -158,7 +159,7 @@ private void drawElement(GuiGraphics guiGraphics, Element element, int x, int y,
158159
moved++;
159160
}
160161
if (element.getToCraftQuantity() > 0) {
161-
renderItem(guiGraphics, new ItemStack(Blocks.CRAFTING_TABLE), x, y, 0.45F);
162+
renderItem(guiGraphics, new ItemStack(Items.PAINTING), x, y, 0.45F);
162163
RenderHelpers.drawScaledString(guiGraphics.pose(), guiGraphics.bufferSource(), Minecraft.getInstance().font, L10NHelpers.localize("gui.integratedterminals.terminal_storage.to_craft", element.getToCraftQuantity()), x + 9, y + 1, 0.5F, 16777215, true, Font.DisplayMode.NORMAL);
163164
y += 8;
164165
moved++;

0 commit comments

Comments
 (0)