From 99e466eec4f3e316dfdc2f9597cab84b463918a0 Mon Sep 17 00:00:00 2001 From: dhyces <10985914+dhyces@users.noreply.github.com> Date: Mon, 13 Jan 2025 22:57:41 -0500 Subject: [PATCH] Fix TagsCommand casting --- .../java/net/neoforged/neoforge/server/command/TagsCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/neoforged/neoforge/server/command/TagsCommand.java b/src/main/java/net/neoforged/neoforge/server/command/TagsCommand.java index 8645cc8733..7c6cb92cba 100644 --- a/src/main/java/net/neoforged/neoforge/server/command/TagsCommand.java +++ b/src/main/java/net/neoforged/neoforge/server/command/TagsCommand.java @@ -122,7 +122,7 @@ private static int listTagElements(final CommandContext ctx, final TagKey tagKey = TagKey.create(cast(registryKey), tagLocation); @SuppressWarnings({ "unchecked", "rawtypes" }) - Optional> optional = registry.get(TagsCommand.cast(tagKey)); + Optional> optional = registry.get(TagsCommand.cast(tagKey)); final HolderSet.Named tag = optional.orElseThrow(() -> UNKNOWN_TAG.create(tagKey.location(), registryKey.location())); ctx.getSource().sendSuccess(() -> createMessage(