mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Update UpdateChecker.java
This commit is contained in:
parent
0e30bd9974
commit
cf3ddec55b
1 changed files with 4 additions and 4 deletions
|
@ -45,11 +45,11 @@ public class UpdateChecker {
|
|||
if (Minecraft.getInstance().player != null) {
|
||||
Player player = Minecraft.getInstance().player;
|
||||
if (UpdateChecker.checkFailed) {
|
||||
player.displayClientMessage(Component.Serializer.fromJson(I18n.get("info." + ActuallyAdditions.MODID + ".update.failed")), false);
|
||||
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.failed"), false);
|
||||
} else if (UpdateChecker.needsUpdateNotify) {
|
||||
player.displayClientMessage(Component.Serializer.fromJson(I18n.get("info." + ActuallyAdditions.MODID + ".update.generic")), false);
|
||||
player.displayClientMessage(Component.Serializer.fromJson(I18n.get("info." + ActuallyAdditions.MODID + ".update.versionCompare", ActuallyAdditions.VERSION, UpdateChecker.updateVersionString)), false);
|
||||
player.displayClientMessage(Component.Serializer.fromJson(I18n.get("info." + ActuallyAdditions.MODID + ".update.buttons", UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK)), false);
|
||||
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.generic"), false);
|
||||
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.versionCompare", ActuallyAdditions.VERSION, UpdateChecker.updateVersionString), false);
|
||||
player.displayClientMessage(Component.translatable("info." + ActuallyAdditions.MODID + ".update.buttons", UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK), false);
|
||||
}
|
||||
if (threadFinished) {
|
||||
NeoForge.EVENT_BUS.unregister(this);
|
||||
|
|
Loading…
Reference in a new issue