Skip to content

Commit

Permalink
clear data after reset
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Sep 19, 2024
1 parent 7b2f100 commit 77783c9
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,14 @@ public void tick() {
}
if(!recipeTested) {
RecipeHolder<DoliumRecipe> recipe=DoliumRecipe.testDolium(tank.getFluid(), inv);
if (recipe!= null&&!recipe.id().equals(lastRecipe)) {
process=processMax=recipe.value().time;
lastRecipe=recipe.id();
if (recipe!= null) {
if(!recipe.id().equals(lastRecipe)) {
process=processMax=recipe.value().time;
lastRecipe=recipe.id();
}
}else {
process=processMax=0;
lastRecipe=null;
}

recipeTested=true;
Expand Down

0 comments on commit 77783c9

Please sign in to comment.