From 1755470299a471b54f6d641126218f233d8a7423 Mon Sep 17 00:00:00 2001 From: loenaaaa Date: Wed, 4 Feb 2026 10:24:18 +0800 Subject: [PATCH] Fix tool forge voiding items bug/desync (#244) Co-authored-by: Martin Robertz Co-authored-by: Nikolay S. --- .../tconstruct/tools/inventory/ToolStationContainer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/tconstruct/tools/inventory/ToolStationContainer.java b/src/main/java/tconstruct/tools/inventory/ToolStationContainer.java index 723b5014..56070615 100644 --- a/src/main/java/tconstruct/tools/inventory/ToolStationContainer.java +++ b/src/main/java/tconstruct/tools/inventory/ToolStationContainer.java @@ -198,4 +198,13 @@ public class ToolStationContainer extends ActiveContainer { return failedToMerge; } + + @Override + public ItemStack slotClick(int slotId, int clickedButton, int mode, EntityPlayer player) { + ItemStack output = super.slotClick(slotId, clickedButton, mode, player); + if (slotId > 0) { + this.logic.buildTool(this.logic.toolName); + } + return output; + } }