Skip to content

Commit

Permalink
wip: fix warp plate names
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jun 13, 2024
1 parent 11f3fdc commit 3945ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ public static ChatFormatting getColorForName(String name) {
}

public static String getGalacticIdentifier(Waystone waystone) {
return waystone.getWaystoneUid().toString().replace("-", "").substring(0, 6);
final var intermediate = waystone.getWaystoneUid().toString().replaceAll("[0-9\\-]", "");
return intermediate.substring(0, Math.min(8, intermediate.length()));
}

public static Component getGalacticName(Waystone waystone) {
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/resources/assets/waystones/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"gui.waystones.waystone_settings.manage_modifiers": "Manage Modifiers",
"gui.waystones.waystone_settings.visibility.activation": "Visible upon Activation",
"gui.waystones.waystone_settings.visibility.global": "Visible to Everyone",
"gui.waystones.waystone_settings.visibility.shard_only": "Teleport via Attuned Shard",
"gui.waystones.waystone_settings.visibility.shard_only": "Teleports via Attuned Shard",
"gui.waystones.waystone_settings.visibility.orange_sharestone": "Visible to Orange Sharestones",
"gui.waystones.waystone_settings.visibility.magenta_sharestone": "Visible to Magenta Sharestones",
"gui.waystones.waystone_settings.visibility.light_blue_sharestone": "Visible to Light Blue Sharestones",
Expand Down

0 comments on commit 3945ed5

Please sign in to comment.