@Override public boolean onTickInGame(float f, Minecraft mc) { if (allowUpdateCheck) { if (!versionChecker.isCurrentVersion()) for (String msg : versionChecker.getInGameMessage()) mc.thePlayer.addChatMessage(msg); allowUpdateCheck = false; } return false; }
@Override public void load() { if (allowUpdateCheck) { versionChecker = new ModVersionChecker( getName(), getVersion(), versionURL, mcfTopic, ModLoader.getLogger()); versionChecker.checkVersionWithLoggingBySubStringAsFloat(1, 4); ModLoader.setInGameHook(this, true, true); } }