Skip to content

Commit

Permalink
fix: gate interactions not working in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed May 10, 2024
1 parent f725f08 commit 6dc8e19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public final InteractionZone[] getInteractionZones() {
public void buildInteractionZoneList(List<InteractionZone> zones) {
}

@OnlyIn(Dist.CLIENT)
public void buildToolTip(List<Component> toolTip) {
toolTip.add(Component.translatable(tileType.getUnlocalizedName()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import mrtjp.projectred.fabrication.editor.tools.InteractionZone;
import mrtjp.projectred.fabrication.editor.tools.SimpleInteractionZone;
import net.minecraft.network.chat.Component;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -53,7 +51,6 @@ public void buildInteractionZoneList(List<InteractionZone> zones) {
addDeadSidesInteractions(zones, interactMask(), this::getBoundsForIOToggleZone, this::toggleDeadSide, this::getDeadSideToolTip);
}

@OnlyIn(Dist.CLIENT)
protected Component getDeadSideToolTip(int r) {
boolean isEnabled = (getShape() & rotationToDeadSideBit(r)) == 0;
return Component.translatable(isEnabled ? UL_SIDE_ENABLED : UL_SIDE_DISABLED).withStyle(ICWorkbenchEditor.UNIFORM_GRAY);
Expand Down

0 comments on commit 6dc8e19

Please sign in to comment.