Skip to content

Commit

Permalink
See Argus-Labs/world-engine@8673b0c from refs/heads/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Argus-Labs committed Mar 6, 2024
1 parent 744338d commit fdd9975
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cardinal/system/system_player_spawner.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ func PlayerSpawnerSystem(world cardinal.WorldContext) error {
return msg.CreatePlayerResult{}, fmt.Errorf("error creating player: %w", err)
}

world.EmitEvent(fmt.Sprintf("new player %d created", id))
err = world.EmitEvent(fmt.Sprintf("new player %d created", id))
if err != nil {
return msg.CreatePlayerResult{}, err
}
return msg.CreatePlayerResult{Success: true}, nil
})
return nil
Expand Down

0 comments on commit fdd9975

Please sign in to comment.