mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Make @Adaptivity happy
This commit is contained in:
1 parent
2b2eaaa7ee
commit
d80bd63e7a
2 files changed
+10
-22
No files matched your search
@@ -78,7 +78,14 @@ public class DynamicToolPart extends CraftingItem implements IToolPart
|
||||
// general name
|
||||
else
|
||||
{
|
||||
return StatCollector.translateToLocal("toolpart." + partName).replaceAll("%%material", toolmat.prefixName());
|
||||
// specific material name for materials?
|
||||
String matName;
|
||||
if(StatCollector.canTranslate("toolpart.material." + material))
|
||||
matName = StatCollector.translateToLocal("toolpart.material." + material);
|
||||
else
|
||||
matName = toolmat.prefixName();
|
||||
|
||||
return StatCollector.translateToLocal("toolpart." + partName).replaceAll("%%material", matName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user