Skip to content

Commit

Permalink
Fix #105
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Oct 4, 2024
1 parent 0e54173 commit bfb77a3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.mrbysco.forcecraft.registry.ForceTags;
import net.minecraft.ChatFormatting;
import net.minecraft.Util;
import net.minecraft.client.resources.language.I18n;
import net.minecraft.core.BlockPos;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.nbt.CompoundTag;
Expand Down Expand Up @@ -126,7 +125,7 @@ public Component getName(ItemStack stack) {
FlaskContent content = stack.get(ForceComponents.FLASK_CONTENT);
if (content != null) {
String mobTranslation = Util.makeDescriptionId("entity", content.storedType());
return Component.translatable(super.getDescriptionId(stack), I18n.get(mobTranslation));
return Component.translatable(super.getDescriptionId(stack), Component.translatable(mobTranslation));
}

return Component.translatable(super.getDescriptionId(stack), "Empty");
Expand Down

0 comments on commit bfb77a3

Please sign in to comment.