|
64 | 64 | @Mod( |
65 | 65 | modid = KamiMod.MODID, |
66 | 66 | name = KamiMod.MODNAME, |
67 | | - version = KamiMod.MODVER |
| 67 | + version = KamiMod.VER_FULL_BETA |
68 | 68 | ) |
69 | 69 | public class KamiMod { |
70 | 70 |
|
71 | 71 | public static final String MODNAME = "KAMI Blue"; |
72 | 72 | public static final String MODID = "kamiblue"; |
73 | | - public static final String MODVER = "v1.1.7-beta"; // this is changed to v1.x.x-commit for debugging during travis releases |
74 | | - public static final String MODVERSMALL = "v1.1.7-beta"; // shown to the user |
75 | | - public static final String MODVERBROAD = "v1.1.6"; // used for update checking |
| 73 | + public static final String VER_FULL_BETA = "v1.1.7-beta"; // this is changed to v1.x.x-commit for debugging by automatic builds |
| 74 | + public static final String VER_SMALL = "v1.1.7-beta"; // shown to the user, unchanged |
| 75 | + public static final String VER_STABLE = "v1.1.6"; // used for update checking |
76 | 76 |
|
77 | 77 | public static final String APP_ID = "638403216278683661"; |
78 | 78 |
|
@@ -127,13 +127,13 @@ public void preInit(FMLPreInitializationEvent event) { |
127 | 127 | public void postInit(FMLPostInitializationEvent event) { |
128 | 128 | setCustomIcons(); |
129 | 129 | if (MODULE_MANAGER.getModuleT(CommandConfig.class).customTitle.getValue()) { |
130 | | - Display.setTitle(MODNAME + " " + KAMI_KANJI + " " + MODVERSMALL); |
| 130 | + Display.setTitle(MODNAME + " " + KAMI_KANJI + " " + VER_SMALL); |
131 | 131 | } |
132 | 132 | } |
133 | 133 |
|
134 | 134 | @Mod.EventHandler |
135 | 135 | public void init(FMLInitializationEvent event) { |
136 | | - log.info("\n\nInitializing " + MODNAME + " " + MODVER); |
| 136 | + log.info("\n\nInitializing " + MODNAME + " " + VER_FULL_BETA); |
137 | 137 |
|
138 | 138 | MODULE_MANAGER.register(); |
139 | 139 |
|
@@ -282,16 +282,16 @@ public void updateCheck() { |
282 | 282 | JsonParser parser = new JsonParser(); |
283 | 283 | String latestVersion = parser.parse(IOUtils.toString(new URL(UPDATE_JSON))).getAsJsonObject().getAsJsonObject("stable").get("name").getAsString(); |
284 | 284 |
|
285 | | - isLatest = latestVersion.equals(MODVERBROAD); |
| 285 | + isLatest = latestVersion.equals(VER_STABLE); |
286 | 286 | latest = latestVersion; |
287 | 287 |
|
288 | 288 | if (!isLatest) { |
289 | | - KamiMod.log.warn("You are running an outdated version of KAMI Blue.\nCurrent: " + MODVERBROAD + "\nLatest: " + latestVersion); |
| 289 | + KamiMod.log.warn("You are running an outdated version of KAMI Blue.\nCurrent: " + VER_STABLE + "\nLatest: " + latestVersion); |
290 | 290 |
|
291 | 291 | return; |
292 | 292 | } |
293 | 293 |
|
294 | | - KamiMod.log.info("Your KAMI Blue (" + MODVERBROAD + ") is up-to-date with the latest stable release."); |
| 294 | + KamiMod.log.info("Your KAMI Blue (" + VER_STABLE + ") is up-to-date with the latest stable release."); |
295 | 295 | } catch (IOException e) { |
296 | 296 | latest = null; |
297 | 297 |
|
|
0 commit comments