Skip to content

Commit

Permalink
Fix server calling I18n with Ritual Diviner (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Oct 15, 2022
1 parent 7221108 commit 564f861
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.client.resources.I18n;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
Expand Down Expand Up @@ -159,7 +158,7 @@ public String getItemStackDisplayName(ItemStack stack)
{
return super.getItemStackDisplayName(stack);
}
return I18n.format("bm.string.ritualDiviner", Rituals.getLocalizedNameOfRitual(ritualID));
return StatCollector.translateToLocalFormatted("bm.string.ritualDiviner", Rituals.getLocalizedNameOfRitual(ritualID));
} else
{
return super.getItemStackDisplayName(stack);
Expand Down

0 comments on commit 564f861

Please sign in to comment.