Skip to content

Commit

Permalink
Merge pull request #84 from OneLiteFeatherNET/bugfix/fix-argument-order
Browse files Browse the repository at this point in the history
Fix argument order for translation
  • Loading branch information
TheMeinerLP authored Jul 8, 2024
2 parents cacda49 + 482284e commit 5e2994b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ private Component mapClockToMessage(RedstoneClock redstoneClock) {
return Component.empty().hoverEvent(Component.translatable("antiredstoneclockremastered.command.display.clock.hover").asHoverEvent()).append(
Component.translatable("antiredstoneclockremastered.command.display.clock.text")
.arguments(
TranslationArgument.numeric(redstoneClock.getTriggerCount()),
TranslationArgument.numeric(location.getBlockX()),
TranslationArgument.numeric(location.getBlockY()),
TranslationArgument.numeric(location.getBlockZ()),
TranslationArgument.numeric(redstoneClock.getTriggerCount()),
Component.empty()
.clickEvent(ClickEvent.callback(audience -> {
if (audience instanceof final Player executor) {
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/antiredstoneclockremasterd.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
service.notify.detected.clock=<arg:0> <gold><arg:4>Redstone Clock detected at: X,Y,Z(<arg:1>,<arg:2>,<arg:3>)
antiredstoneclockremastered.command.reload.success=<arg:0> <green>The configuration has been reloaded. <yellow>A server restart is still recommended instead of just reloads
antiredstoneclockremastered.command.reload.description=<gray>Reloads the AntiRedstone Clock Remastered
antiredstoneclockremastered.command.display.clock.text=<yellow><arg:4>Clock(<arg:0>,<arg:1>,<arg:2>) was triggered <arg:3>
antiredstoneclockremastered.command.display.clock.title=<arg:0> <gold>Cached clocks \:
antiredstoneclockremastered.command.display.clock.text=<yellow><arg:0>Clock(<arg:1>,<arg:2>,<arg:3>) was triggered <arg:4>
antiredstoneclockremastered.command.display.clock.hover=<green>Click me to teleport
antiredstoneclockremastered.command.display.description=<gray>Shows you all active cached Cocks
antiredstoneclockremastered.command.feature.check.toggle.enabled=<arg:0> <yellow>The function is now: <green>Enabled
Expand Down

0 comments on commit 5e2994b

Please sign in to comment.