From ef63428faeb0425344bab41b64d464545274a327 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sun, 11 Aug 2024 19:12:12 +0200 Subject: [PATCH] chore: fix refined storage on neoforge --- .../refinedstorage/rei/forge/ReiGridSynchronizer.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java index 3786fd0..ed83cfc 100644 --- a/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java @@ -1,18 +1,20 @@ package com.refinedmods.refinedstorage.rei.forge; -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; } }