Compare commits

...

2 Commits

Author SHA1 Message Date
47ac38726f Merge pull request 'update to 1.16.2' (#10) from Giselbaer/ModUpdater:master into master
All checks were successful
ModUpdater/pipeline/head This commit looks good
2020-08-11 20:43:55 +00:00
Guntram Blohm
bed078867d update to 1.16.2 2020-08-11 22:24:28 +02:00
2 changed files with 6 additions and 6 deletions

View File

@ -2,17 +2,17 @@
org.gradle.jvmargs = -Xmx1G org.gradle.jvmargs = -Xmx1G
# Fabric Properties # Fabric Properties
minecraft_version = 1.16.1 minecraft_version = 1.16.2
curseforge_id = 391583 curseforge_id = 391583
simple_minecraft_version = 1.16.1 simple_minecraft_version = 1.16.2
yarn_build = 1 yarn_build = 1
fabric_loader_version = 0.8.8+build.202 fabric_loader_version = 0.9.1+build.205
# Mod Properties # Mod Properties
mod_version = 1.1.9 mod_version = 1.1.9
maven_group = com.thebrokenrail maven_group = com.thebrokenrail
# Dependencies # Dependencies
fabric_api_version = 0.13.1+build.370-1.16 fabric_api_version = 0.17.2+build.396-1.16
modmenu_version = 1.12.2+build.16 modmenu_version = 1.14.2+build.27
moshi_version = 1.9.2 moshi_version = 1.9.2

View File

@ -26,7 +26,7 @@ public class ModUpdaterCommand {
ModUpdate[] updates = ModUpdater.getUpdates(); ModUpdate[] updates = ModUpdater.getUpdates();
assert updates != null; assert updates != null;
for (ModUpdate update : updates) { for (ModUpdate update : updates) {
context.getSource().sendFeedback(new LiteralText(update.text).styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, update.downloadURL)).setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TranslatableText("commands." + ModUpdater.NAMESPACE + ".hover")))), false); context.getSource().sendFeedback(new LiteralText(update.text).styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, update.downloadURL)).withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TranslatableText("commands." + ModUpdater.NAMESPACE + ".hover")))), false);
} }
return updates.length; return updates.length;
})) }))