Skip to content

Commit

Permalink
fix: scheduling mode icons
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jun 27, 2024
1 parent 0f3f9a6 commit a8e41c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Relay having no help tooltip.
- Fixed bug where adding more Speed Upgrades would actually slow down the device even more.
- Fixed missing textures for scheduling mode side button.

## [2.0.0-milestone.3.13] - 2024-06-16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

import static com.refinedmods.refinedstorage2.platform.common.util.IdentifierUtil.createTranslation;


// TODO: icons .
public class SchedulingModeSideButtonWidget extends AbstractSideButtonWidget {
private static final MutableComponent TITLE = createTranslation("gui", "scheduling_mode");

Expand All @@ -34,12 +32,16 @@ private static SchedulingModeType toggle(final SchedulingModeType modeSettings)

@Override
protected int getXTexture() {
return -16;
return switch (property.getValue()) {
case DEFAULT -> 0;
case ROUND_ROBIN -> 16;
case RANDOM -> 32;
};
}

@Override
protected int getYTexture() {
return -16;
return 144;
}

@Override
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8e41c6

Please sign in to comment.