Skip to content

Commit

Permalink
fix seed command output (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
kralverde authored Dec 24, 2024
1 parent fcf85df commit 5e60dba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pumpkin/src/command/commands/cmd_seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ impl CommandExecutor for PumpkinExecutor {
_args: &ConsumedArgs<'a>,
) -> Result<(), CommandError> {
let seed = match sender {
CommandSender::Player(player) => {
player.living_entity.entity.world.level.seed.0.to_string()
}
CommandSender::Player(player) => player.living_entity.entity.world.level.seed.0,
_ => match server.worlds.first() {
Some(world) => world.level.seed.0.to_string(),
Some(world) => world.level.seed.0,
None => {
return Err(CommandError::GeneralCommandIssue(
"Unable to get Seed".to_string(),
))
}
},
};
let seed = (seed as i64).to_string();

sender
.send_message(
Expand Down

0 comments on commit 5e60dba

Please sign in to comment.