mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Make dynamic toolparts use the correct material localization. Deprecated toolpart stays the same so old addons have backwards compatibility. #1078
This commit is contained in:
1 parent
fc35996010
commit
80ab942ff6
1 file changed
+1
-2
@@ -78,8 +78,7 @@ public class DynamicToolPart extends CraftingItem implements IToolPart
|
||||
// general name
|
||||
else
|
||||
{
|
||||
material = StatCollector.translateToLocal("material." + material);
|
||||
return StatCollector.translateToLocal("toolpart." + partName).replaceAll("%%material", material);
|
||||
return StatCollector.translateToLocal("toolpart." + partName).replaceAll("%%material", toolmat.prefixName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user