From 31a3d6b41c81a1a76522dee40efa9841046a3efa Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Sat, 19 Apr 2025 18:57:44 +0200 Subject: [PATCH] Update to MC 1.21.5 --- build.gradle | 2 +- gradle.properties | 16 ++++++++-------- .../bmareas/command/area/AreaCreateCommand.java | 5 ++--- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 2ecf1ef..badf36e 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ dependencies { implementation "me.mrletsplay:MrCore:4.3" - compileOnly 'de.bluecolored:bluemap-api:2.7.3' + compileOnly 'de.bluecolored:bluemap-api:2.7.4' } processResources { diff --git a/gradle.properties b/gradle.properties index 2ee2d30..4aa6602 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,16 +2,16 @@ org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true -# Fabric Properties -# check these on https://fabricmc.net/develop -minecraft_version=1.21.3 -yarn_mappings=1.21.3+build.2 -loader_version=0.16.9 - # Mod Properties mod_version=1.0.0 maven_group=me.mrletsplay.bmareas archives_base_name=bmareas -# Dependencies -fabric_version=0.112.0+1.21.3 \ No newline at end of file +# Fabric Properties +# check these on https://fabricmc.net/develop +minecraft_version=1.21.5 +yarn_mappings=1.21.5+build.1 +loader_version=0.16.13 + +# Fabric API +fabric_version=0.120.0+1.21.5 \ No newline at end of file diff --git a/src/main/java/me/mrletsplay/bmareas/command/area/AreaCreateCommand.java b/src/main/java/me/mrletsplay/bmareas/command/area/AreaCreateCommand.java index 5e5f507..348d160 100644 --- a/src/main/java/me/mrletsplay/bmareas/command/area/AreaCreateCommand.java +++ b/src/main/java/me/mrletsplay/bmareas/command/area/AreaCreateCommand.java @@ -5,13 +5,12 @@ import me.mrletsplay.mrcore.fabric.command.FabricCommand; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.text.ClickEvent; import net.minecraft.text.HoverEvent; -import net.minecraft.text.HoverEvent.Action; import net.minecraft.text.Text; import net.minecraft.util.Formatting; public class AreaCreateCommand extends FabricCommand { - private static final HoverEvent CLICK_ME = new HoverEvent(Action.SHOW_TEXT, Text.literal("Click me!")); + private static final HoverEvent CLICK_ME = new HoverEvent.ShowText(Text.literal("Click me!")); public AreaCreateCommand() { super("create"); @@ -35,7 +34,7 @@ public class AreaCreateCommand extends FabricCommand { p.sendMessage(Text.literal("To create an area:")); p.sendMessage(Text.literal("1. ").formatted(Formatting.GOLD) - .append(Text.literal("[Add]").formatted(Formatting.GREEN).styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/area addcorner")).withHoverEvent(CLICK_ME))) + .append(Text.literal("[Add]").formatted(Formatting.GREEN).styled(style -> style.withClickEvent(new ClickEvent.RunCommand("/area addcorner")).withHoverEvent(CLICK_ME))) .append(Text.literal(" all corners of your area (or use ").formatted(Formatting.WHITE)) .append(Text.literal("/area addcorner [offset]").formatted(Formatting.GRAY)) .append(Text.literal(")").formatted(Formatting.WHITE)));