mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
[API] Fixed signatures being weird.
This commit is contained in:
1 parent
6ca4e74b85
commit
e7ee8c033b
3 files changed
+13
-4
No files matched your search
@@ -52,7 +52,7 @@ public class BasicSignature extends SubTileSignature {
|
||||
}
|
||||
|
||||
private String unlocalizedName(String end) {
|
||||
return "tile." + SubTileSignature.SPECIAL_FLOWER_PREFIX + name + end;
|
||||
return "tile.botania:" + SubTileSignature.SPECIAL_FLOWER_PREFIX + name + end;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,7 +24,11 @@ public class ItemBlockMod extends ItemBlock {
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameInefficiently(ItemStack par1ItemStack) {
|
||||
return super.getUnlocalizedNameInefficiently(par1ItemStack).replaceAll("tile.", "tile." + LibResources.PREFIX_MOD);
|
||||
return getUnlocalizedNameInefficiently_(par1ItemStack).replaceAll("tile.", "tile." + LibResources.PREFIX_MOD);
|
||||
}
|
||||
|
||||
public String getUnlocalizedNameInefficiently_(ItemStack stack) {
|
||||
return super.getUnlocalizedNameInefficiently(stack);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -68,11 +68,16 @@ public class ItemBlockSpecialFlower extends ItemBlockMod implements IRecipeKeyPr
|
||||
public String getUnlocalizedName(ItemStack stack) {
|
||||
return BotaniaAPI.getSignatureForName(getType(stack)).getUnlocalizedNameForStack(stack);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameInefficiently(ItemStack par1ItemStack) {
|
||||
return getUnlocalizedNameInefficiently_(par1ItemStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||
if(ConfigHandler.referencesEnabled) {
|
||||
String refUnlocalized = "tile." + LibResources.PREFIX_MOD + SubTileSignature.SPECIAL_FLOWER_PREFIX + getType(par1ItemStack) + ".reference";
|
||||
String refUnlocalized = BotaniaAPI.getSignatureForName(getType(par1ItemStack)).getUnlocalizedLoreTextForStack(par1ItemStack);
|
||||
String refLocalized = StatCollector.translateToLocal(refUnlocalized);
|
||||
if(!refLocalized.equals(refUnlocalized))
|
||||
par3List.add(EnumChatFormatting.ITALIC + refLocalized);
|
||||
|
||||
Reference in new issue
Block a user