diff --git a/CHANGELOG.md b/CHANGELOG.md index f771765..b482f84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.3.1] - 2024-08-11 + +### Fixed + +- Support for Refined Storage v2.0.0-milestone.4.7. + ## [0.3.0] - 2024-08-08 ### Added @@ -63,7 +69,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Support for REI collapsable entries. - Grid / REI search box synchronization options. -[Unreleased]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.3.0...HEAD +[Unreleased]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.3.1...HEAD + +[0.3.1]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.3.0...v0.3.1 [0.3.0]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.2.2...v0.3.0 diff --git a/gradle.properties b/gradle.properties index 7b9336a..9593239 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -refinedarchitectVersion=0.16.9 -refinedstorageVersion=2.0.0-milestone.4.6 +refinedarchitectVersion=0.17.1 +refinedstorageVersion=2.0.0-milestone.4.7 # https://linkie.shedaniel.dev/dependencies?loader=neoforge&version=1.21 # https://linkie.shedaniel.dev/dependencies?loader=fabric&version=1.21 architecturyVersion=13.0.3 diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java index 2336085..aef8a90 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java @@ -1,18 +1,20 @@ package com.refinedmods.refinedstorage.rei.fabric; -import com.refinedmods.refinedstorage.common.grid.AbstractGridSynchronizer; +import com.refinedmods.refinedstorage.common.api.grid.GridSynchronizer; +import com.refinedmods.refinedstorage.common.grid.NoopGridSynchronizer; import javax.annotation.Nullable; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; +import net.minecraft.resources.ResourceLocation; import static com.refinedmods.refinedstorage.rei.common.Common.SYNCHRONIZER_HELP; import static com.refinedmods.refinedstorage.rei.common.Common.SYNCHRONIZER_TITLE; import static com.refinedmods.refinedstorage.rei.common.Common.TWO_WAY_SYNCHRONIZER_HELP; import static com.refinedmods.refinedstorage.rei.common.Common.TWO_WAY_SYNCHRONIZER_TITLE; -public class ReiGridSynchronizer extends AbstractGridSynchronizer { +public class ReiGridSynchronizer implements GridSynchronizer { private final boolean twoWay; public ReiGridSynchronizer(final boolean twoWay) { @@ -41,7 +43,7 @@ public String getTextToSynchronizeToGrid() { } @Override - public int getXTexture() { - return twoWay ? 32 : 48; + public ResourceLocation getSprite() { + return twoWay ? NoopGridSynchronizer.ON_TWO_WAY : NoopGridSynchronizer.ON; } }