Skip to content

fix: still show feedback if no regions affected by cmd - #29

Open
Restioson wants to merge 1 commit into
NucleoidMC:1.20.4from
Restioson:fix/show-feedback-when-none-changed
Open

fix: still show feedback if no regions affected by cmd#29
Restioson wants to merge 1 commit into
NucleoidMC:1.20.4from
Restioson:fix/show-feedback-when-none-changed

Conversation

@Restioson

Copy link
Copy Markdown
Contributor

This just shows a little bit of feedback if no regions were matched, to improve QoL

source.sendFeedback(() -> withMapPrefix(map, Text.literal("No regions affected.")), false);
}

return 2;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't relevant to this pull request, but it's odd that this command has a result of 2.

Comment thread src/main/java/xyz/nucleoid/creator_tools/command/MapMetadataCommand.java Outdated
@Restioson
Restioson force-pushed the fix/show-feedback-when-none-changed branch from f1b358e to b567de1 Compare June 13, 2024 13:08
@Restioson
Restioson requested review from Gegy and haykam821 June 13, 2024 13:17
@Restioson
Restioson force-pushed the fix/show-feedback-when-none-changed branch from b567de1 to 44dfe7f Compare June 16, 2024 15:19
"text.nucleoid_creator_tools.map.open.map_already_exists": "Map with id '%s' already exists!",
"text.nucleoid_creator_tools.map.open.success": "Opened workspace '%s'! Use %s to join this map",
"text.nucleoid_creator_tools.map.origin.set": "Updated origin for workspace",
"text.nucleoid_creator_tools.map.region.none_affected": "No regions affected.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this key should be sorted after text.nucleoid_creator_tools.map.region.entity.remove.success.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why particularly? That is for entity removal, and this is for any kind of region processing (e.g. remove, data get, merge, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants