Skip to content

Commit

Permalink
Fixed a crash from NoClassDefFoundError with PRASSs on servers (#52)
Browse files Browse the repository at this point in the history
* I didn't know that was a client only method, oops!

* spotlbesl
  • Loading branch information
Zorbatron authored Oct 10, 2024
1 parent d6764be commit ede175f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextComponentTranslation;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
Expand Down Expand Up @@ -139,8 +140,9 @@ protected void addDisplayText(List<ITextComponent> textList) {
preciseCasingText = TextComponentUtil.translationWithColor(
TextFormatting.GRAY,
"zbgt.machine.precise_assembler.precise_casing.tier",
I18n.format(PreciseCasing.CasingType
.getUntranslatedShortNameByTier(preciseCasingTier)));
new TextComponentTranslation(PreciseCasing.CasingType
.getUntranslatedShortNameByTier(preciseCasingTier))
.getUnformattedComponentText());
}

ITextComponent preciseCasingHoverText = TextComponentUtil.translationWithColor(
Expand Down

0 comments on commit ede175f

Please sign in to comment.