Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delegator TOP info broken on server #394

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.interfaces.IGregTechTileEntity;
import mcjty.theoneprobe.api.IProbeHitData;
import mcjty.theoneprobe.api.IProbeInfo;
import mcjty.theoneprobe.api.IProbeInfoProvider;
import mcjty.theoneprobe.api.ProbeMode;
import mcjty.theoneprobe.api.*;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
Expand All @@ -29,8 +25,8 @@ public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer play
if (te instanceof IGregTechTileEntity igtte) {
MetaTileEntity mte = igtte.getMetaTileEntity();
if (mte instanceof IDelegator delegator) {
probeInfo.text(I18n.format("gregtech.top.delegator.delegating_face",
delegator.getDelegatingFacing(data.getSideHit())));
probeInfo.text(TextStyleClass.INFO + "{*gregtech.top.delegator.delegating_face*}" +
delegator.getDelegatingFacing(data.getSideHit()));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/susy/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ gregtech.machine.ordered_dt.tooltip.2=§cNot putting a fluid output in the Nth l

# Logistics
gregtech.machine.delegator.tooltip.non_recursion=§6Cannot be attached to other Delegators!
gregtech.top.delegator.delegating_face=Delegating: %s
gregtech.top.delegator.delegating_face=Delegating face:

gregtech.machine.bridge.inv.name=Inventory Bridge
gregtech.machine.bridge.inv.tooltip=§bRelays Inventories
Expand Down