diff --git a/src/main/java/xyz/nucleoid/creator_tools/command/MapMetadataCommand.java b/src/main/java/xyz/nucleoid/creator_tools/command/MapMetadataCommand.java index ac71af1..df27372 100644 --- a/src/main/java/xyz/nucleoid/creator_tools/command/MapMetadataCommand.java +++ b/src/main/java/xyz/nucleoid/creator_tools/command/MapMetadataCommand.java @@ -263,7 +263,7 @@ private static boolean executeRegionDataGet(CommandContext Text.translatable("text.nucleoid_creator_tools.map.region.data.get", region.marker(), formatNbt(region.data())) ); }, false); - return false; + return true; } private static boolean executeRegionDataMerge(CommandContext context, MapWorkspace map, WorkspaceRegion region) { @@ -598,9 +598,14 @@ private static Command executeInRegions(String message, Reg } if (count > 0) { - int finalCount = count; - source.sendFeedback(() -> withMapPrefix(map, Text.literal(String.format(message, finalCount))), false); + if (!message.isEmpty()) { + int finalCount = count; + source.sendFeedback(() -> withMapPrefix(map, Text.literal(String.format(message, finalCount))), false); + } + } else { + source.sendFeedback(() -> withMapPrefix(map, Text.literal("No regions affected.")), false); } + return 2; }; }