diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b5fba704..66ac9dd86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/support/widget/SchedulingModeSideButtonWidget.java b/refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/support/widget/SchedulingModeSideButtonWidget.java index 442e9382e..cf0a051d1 100644 --- a/refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/support/widget/SchedulingModeSideButtonWidget.java +++ b/refinedstorage2-platform-common/src/main/java/com/refinedmods/refinedstorage2/platform/common/support/widget/SchedulingModeSideButtonWidget.java @@ -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"); @@ -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 diff --git a/refinedstorage2-platform-common/src/main/resources/assets/refinedstorage2/textures/icons.png b/refinedstorage2-platform-common/src/main/resources/assets/refinedstorage2/textures/icons.png index 2a5d67b2e..39ec1ea00 100644 Binary files a/refinedstorage2-platform-common/src/main/resources/assets/refinedstorage2/textures/icons.png and b/refinedstorage2-platform-common/src/main/resources/assets/refinedstorage2/textures/icons.png differ