Skip to content

Commit c45672b

Browse files
committed
Add decimal representation of hashed seed to feedback message
1 parent 33a7c90 commit c45672b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/net/earthcomputer/clientcommands/command/ServerSeedCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private static int enchantmentSeed(FabricClientCommandSource source) throws Comm
4646
private static int hashedSeed(FabricClientCommandSource source) {
4747
long hashedSeed = source.getWorld().getBiomeManager().biomeZoomSeed;
4848
HashCode seedHash = HashCode.fromLong(hashedSeed);
49-
source.sendFeedback(Component.translatable("commands.cserverseed.hashedSeed", ComponentUtils.copyOnClickText(seedHash.toString())));
49+
source.sendFeedback(Component.translatable("commands.cserverseed.hashedSeed", ComponentUtils.copyOnClickText(seedHash.toString()), ComponentUtils.copyOnClickText(String.valueOf(seedHash.asLong()))));
5050
return (int) hashedSeed;
5151
}
5252

src/main/resources/assets/clientcommands/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226

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

0 commit comments

Comments
 (0)