Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static TextWidget<?> addParallelLine(IWorkableMultiController rlMachine,
return Component.translatable(key, runs)
.withStyle(ChatFormatting.GRAY);
}).asWidget()
.setEnabledIf(widget -> parallelAmount.getIntValue() != 0);
.setEnabledIf(widget -> parallelAmount.getIntValue() > 1);
}

public static TextWidget<?> addBatchModeLine(IWorkableMultiController rlMachine, PanelSyncManager syncManager) {
Expand All @@ -160,7 +160,7 @@ public static TextWidget<?> addBatchModeLine(IWorkableMultiController rlMachine,
return Component.translatable(key, runs)
.withStyle(ChatFormatting.GRAY);
}).asWidget()
.setEnabledIf(widget -> batchEnabled.getBoolValue() && batchAmount.getIntValue() != 0);
.setEnabledIf(widget -> batchEnabled.getBoolValue() && batchAmount.getIntValue() > 1);
}

public static TextWidget<?> addSubtickParallelsLine(IWorkableMultiController rlMachine,
Expand All @@ -178,7 +178,7 @@ public static TextWidget<?> addSubtickParallelsLine(IWorkableMultiController rlM
return Component.translatable(key, runs)
.withStyle(ChatFormatting.GRAY);
}).asWidget()
.setEnabledIf(widget -> subtickAmount.getIntValue() != 0);
.setEnabledIf(widget -> subtickAmount.getIntValue() > 1);
}

public static TextWidget<?> addTotalRunsLine(IWorkableMultiController rlMachine, PanelSyncManager syncManager) {
Expand All @@ -195,7 +195,7 @@ public static TextWidget<?> addTotalRunsLine(IWorkableMultiController rlMachine,
return Component.translatable(key, runs)
.withStyle(ChatFormatting.GRAY);
}).asWidget()
.setEnabledIf(widget -> totalRunAmount.getIntValue() != 0);
.setEnabledIf(widget -> totalRunAmount.getIntValue() > 1);
}

public static TextWidget<?> addSteamUsageLine(SteamEnergyRecipeHandler steamRH, PanelSyncManager syncManager) {
Expand Down
Loading