Skip to content

Commit

Permalink
Fix rogue underscore in front of town name when changing name
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed Jun 21, 2024
1 parent b0407e0 commit 870c99e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ else if (!player.hasPermission(PermissionNodes.TOWNY_COMMAND_TOWN_SET_NAME.getNo
AwaitingConfirmation.await(player);

try {
TownCommand.townSetName(player, new String[]{"", completion.getText().replaceAll(" ", "_")}, town);
TownCommand.townSetName(player, new String[]{completion.getText().replaceAll(" ", "_")}, town);
} catch (TownyException e) {
TownyMessaging.sendErrorMsg(player, e.getMessage(player));
return AnvilResponse.text(e.getMessage(player));
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@
- Updated AnvilGUI to version 1.9.3-SNAPSHOT for 1.20.5/6 support.
0.0.10:
- Update AnvilGUI again for proper 1.20.6 support.
- Fix rogue underscore in front of town name when changing name.

0 comments on commit 870c99e

Please sign in to comment.