Skip to content

Commit 6094b08

Browse files
authored
Yet another machine pausing issue (#3509)
dn
1 parent 81c7192 commit 6094b08

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/gregtechceu/gtceu/api/machine/trait/RecipeLogic.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,8 @@ public boolean isWorkingEnabled() {
416416

417417
@Override
418418
public void setWorkingEnabled(boolean isWorkingAllowed) {
419-
if (!isWorkingAllowed) {
420-
setSuspendAfterFinish(true);
421-
} else {
419+
setSuspendAfterFinish(!isWorkingAllowed);
420+
if (isWorkingAllowed) {
422421
if (lastRecipe != null && duration > 0) {
423422
setStatus(Status.WORKING);
424423
} else {

0 commit comments

Comments
 (0)