mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Updated ANT: replace targets with GRADLE:
This commit is contained in:
1 parent
03f3acf5b1
commit
dd4c8d43f0
5 files changed
+7
-7
No files matched your search
@@ -46,7 +46,7 @@ public final class VersionChecker {
|
||||
if(!onlineVersion.isEmpty()) {
|
||||
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
|
||||
int onlineBuild = Integer.parseInt(onlineVersion.split("-")[1]);
|
||||
int clientBuild = LibMisc.BUILD.contains("ANT") ? Integer.MAX_VALUE : Integer.parseInt(LibMisc.BUILD);
|
||||
int clientBuild = LibMisc.BUILD.contains("GRADLE") ? Integer.MAX_VALUE : Integer.parseInt(LibMisc.BUILD);
|
||||
if(onlineBuild > clientBuild) {
|
||||
player.addChatComponentMessage(new ChatComponentTranslation("botania.versioning.flavour" + player.worldObj.rand.nextInt(FLAVOUR_MESSAGES)).setChatStyle(new ChatStyle().setColor(EnumChatFormatting.LIGHT_PURPLE)));
|
||||
player.addChatComponentMessage(new ChatComponentTranslation("botania.versioning.outdated", clientBuild, onlineBuild));
|
||||
|
||||
@@ -120,7 +120,7 @@ public class ItemLexicon extends ItemMod implements ILexicon, IElvenItem {
|
||||
|
||||
public static String getEdition() {
|
||||
String version = LibMisc.BUILD;
|
||||
int build = version.contains("ANT") ? 0 : Integer.parseInt(version);
|
||||
int build = version.contains("GRADLE") ? 0 : Integer.parseInt(version);
|
||||
return build == 0 ? StatCollector.translateToLocal("botaniamisc.devEdition") : MathHelper.numberToOrdinal(build);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ public final class LibMisc {
|
||||
// Mod Constants
|
||||
public static final String MOD_ID = "Botania";
|
||||
public static final String MOD_NAME = MOD_ID;
|
||||
public static final String BUILD = "ANT:BUILD";
|
||||
public static final String VERSION = "ANT:VERSION-" + BUILD;
|
||||
public static final String BUILD = "GRADLE:BUILD";
|
||||
public static final String VERSION = "GRADLE:VERSION-" + BUILD;
|
||||
public static final String DEPENDENCIES = "required-after:Forge@[10.12.2.1147,);after:Thaumcraft";
|
||||
|
||||
// Network Contants
|
||||
|
||||
Reference in new issue
Block a user