mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Add localization for king slime tools
This commit is contained in:
1 parent
2a2cf76685
commit
d2681d11c7
2 files changed
+13
-1
No files matched your search
@@ -462,7 +462,15 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
final ItemStack handleStack = new ItemStack(tool.getHandleItem(), 1, 17);
|
||||
final ItemStack accessoryStack = tool.getAccessoryItem() != null ? new ItemStack(tool.getAccessoryItem(), 1, 17) : null;
|
||||
final ItemStack extraStack = tool.getExtraItem() != null ? new ItemStack(tool.getExtraItem(), 1, 17) : null;
|
||||
ItemStack toolStack = ToolBuilder.instance.buildTool(headStack, handleStack, accessoryStack, extraStack, "King Slime " + tool.getLocalizedToolName());
|
||||
|
||||
String loc = "tool." + tool.getToolName().toLowerCase() + ".kingslime"; // special localization the same way as materials
|
||||
String name;
|
||||
if(StatCollector.canTranslate(loc))
|
||||
name = StatCollector.translateToLocal(loc);
|
||||
else
|
||||
name = StatCollector.translateToLocal("tool.kingslimeprefix") + " " + tool.getLocalizedToolName();
|
||||
|
||||
ItemStack toolStack = ToolBuilder.instance.buildTool(headStack, handleStack, accessoryStack, extraStack, name);
|
||||
|
||||
if (toolStack != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user