Skip to content

Commit b094049

Browse files
committed
Make MRBaseItem use the correct lang namespace
1 parent a87bef1 commit b094049

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/me/desht/modularrouters/item/MRBaseItem.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public void appendHoverText(ItemStack stack, Item.TooltipContext context, List<C
4141
}
4242

4343
protected void addUsageInformation(ItemStack itemstack, List<Component> list) {
44-
list.add(xlate("modularrouters.itemText.usage.item." + BuiltInRegistries.ITEM.getKey(itemstack.getItem()).getPath(), getExtraUsageParams()));
44+
var key = BuiltInRegistries.ITEM.getKey(itemstack.getItem());
45+
list.add(xlate(key.getNamespace() + ".itemText.usage.item." + key.getPath(), getExtraUsageParams()));
4546
}
4647

4748
protected abstract void addExtraInformation(ItemStack stack, List<Component> list);

0 commit comments

Comments
 (0)