From 8288ff0f6d1cb49ebda3cac16a4263ead468cf4a Mon Sep 17 00:00:00 2001 From: DStrand1 Date: Tue, 10 Aug 2021 20:22:02 -0500 Subject: [PATCH] wipe recipe cache on multiblock deformation --- .../api/capability/impl/MultiblockRecipeLogic.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/api/capability/impl/MultiblockRecipeLogic.java b/src/main/java/gregtech/api/capability/impl/MultiblockRecipeLogic.java index 7dc2a72f927..1c26dbeb27d 100644 --- a/src/main/java/gregtech/api/capability/impl/MultiblockRecipeLogic.java +++ b/src/main/java/gregtech/api/capability/impl/MultiblockRecipeLogic.java @@ -29,7 +29,15 @@ public void updateWorkable() { * Used to reset cached values in the Recipe Logic on structure deform */ public void invalidate() { - + lastItemInputs = null; + lastFluidInputs = null; + previousRecipe = null; + progressTime = 0; + maxProgressTime = 0; + recipeEUt = 0; + fluidOutputs = null; + itemOutputs = null; + setActive(false); // this marks dirty for us } public IEnergyContainer getEnergyContainer() {