Skip to content

Commit

Permalink
wipe recipe cache on multiblock deformation
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Aug 11, 2021
1 parent f1e6a95 commit 8288ff0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8288ff0

Please sign in to comment.