Skip to content

Commit

Permalink
Add decimal representation of hashed seed to feedback message
Browse files Browse the repository at this point in the history
  • Loading branch information
xpple committed Dec 31, 2024
1 parent 33a7c90 commit c45672b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private static int enchantmentSeed(FabricClientCommandSource source) throws Comm
private static int hashedSeed(FabricClientCommandSource source) {
long hashedSeed = source.getWorld().getBiomeManager().biomeZoomSeed;
HashCode seedHash = HashCode.fromLong(hashedSeed);
source.sendFeedback(Component.translatable("commands.cserverseed.hashedSeed", ComponentUtils.copyOnClickText(seedHash.toString())));
source.sendFeedback(Component.translatable("commands.cserverseed.hashedSeed", ComponentUtils.copyOnClickText(seedHash.toString()), ComponentUtils.copyOnClickText(String.valueOf(seedHash.asLong()))));
return (int) hashedSeed;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/clientcommands/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@

"commands.cserverseed.enchantmentSeed": "Lower 16 bits of the enchantment seed: %s",
"commands.cserverseed.enchantmentSeedNotSent": "The server has not sent the partial enchantment seed yet!",
"commands.cserverseed.hashedSeed": "First 8 bytes of the hashed world seed: %s",
"commands.cserverseed.hashedSeed": "First 8 bytes of the hashed world seed: %s (decimal: %s)",
"commands.cserverseed.hashedSeed.fromStructureSeed": "Found world seed: %s",
"commands.cserverseed.hashedSeed.impossibleSeedCombination": "Impossible seed combination!",

Expand Down

0 comments on commit c45672b

Please sign in to comment.