Accounted for ATG in the "Use Biomes O' Plenty world type" nag message. Localization peeps, you have a new phrase to localize :P

This commit is contained in:
Adubbz 2013-10-22 20:14:19 +11:00
parent 44d0c296c6
commit f35904ce2a
3 changed files with 7 additions and 2 deletions

View File

@ -32,14 +32,18 @@ public class TickHandlerClient implements ITickHandler
{
ChatMessageComponent updateMessage = new ChatMessageComponent();
updateMessage.setColor(EnumChatFormatting.RED);
updateMessage.addKey("phrase.bop.useBOPWorldtype");
if (Loader.isModLoaded("ATG")) updateMessage.addKey("phrase.bop.useBOPATGWorldtype");
else updateMessage.addKey("phrase.bop.useBOPWorldtype");
player.sendChatToPlayer(updateMessage);
}
if (Version.needsUpdateNoticeAndMarkAsSeen())
{
ChatMessageComponent updateMessage = new ChatMessageComponent();
updateMessage.setColor(EnumChatFormatting.RED);
updateMessage.setColor(EnumChatFormatting.RED);
updateMessage.addFormatted("phrase.bop.updateAvaliable", Version.getRecommendedVersion(), Loader.instance().getMinecraftModContainer().getVersion());
player.sendChatToPlayer(updateMessage);
}

View File

@ -70,7 +70,7 @@ public class Version implements Runnable {
if (terrainType == null || property.getBoolean(false) == true)
return false;
if (terrainType.getWorldTypeName().equals(bopType.getWorldTypeName()))
if (terrainType.getWorldTypeName().equals(bopType.getWorldTypeName()) || terrainType.getWorldTypeName().equals("ATG"))
{
property.set(true);

View File

@ -380,6 +380,7 @@ fluid.bop.springWater=Spring Water
phrase.bop.promisedPortalOverworld=A gateway to the Promised Land has appeared in the sky above.
phrase.bop.promisedPortalOther=A gateway to the Overworld has appeared in the sky above.
phrase.bop.useBOPATGWorldtype=The Biomes O Plenty world type or ATG world type must be used in order for the new biomes to generate. This message will only display once.
phrase.bop.useBOPWorldtype=The Biomes O Plenty world type must be used in order for the new biomes to generate. This message will only display once.
phrase.bop.updateAvaliable=A new version of Biomes O Plenty is available: v%s for Minecraft %s