Skip to content

Commit

Permalink
chore: fix refined storage on neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Aug 11, 2024
1 parent a6750f8 commit ef63428
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -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;
}
}

0 comments on commit ef63428

Please sign in to comment.