From f35904ce2a0de222e789625c2a585167170e26c8 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Tue, 22 Oct 2013 20:14:19 +1100 Subject: [PATCH] Accounted for ATG in the "Use Biomes O' Plenty world type" nag message. Localization peeps, you have a new phrase to localize :P --- common/biomesoplenty/handlers/TickHandlerClient.java | 6 +++++- common/biomesoplenty/helpers/Version.java | 2 +- resources/assets/biomesoplenty/lang/en_US.lang | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/biomesoplenty/handlers/TickHandlerClient.java b/common/biomesoplenty/handlers/TickHandlerClient.java index b0e4148ce..563adbed0 100644 --- a/common/biomesoplenty/handlers/TickHandlerClient.java +++ b/common/biomesoplenty/handlers/TickHandlerClient.java @@ -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); } diff --git a/common/biomesoplenty/helpers/Version.java b/common/biomesoplenty/helpers/Version.java index 832b9c36f..2f2d1ed0f 100644 --- a/common/biomesoplenty/helpers/Version.java +++ b/common/biomesoplenty/helpers/Version.java @@ -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); diff --git a/resources/assets/biomesoplenty/lang/en_US.lang b/resources/assets/biomesoplenty/lang/en_US.lang index 7001ad37e..a79bb4354 100644 --- a/resources/assets/biomesoplenty/lang/en_US.lang +++ b/resources/assets/biomesoplenty/lang/en_US.lang @@ -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