Move the account registration into the world
This commit is contained in:
parent
6f2d67bd7c
commit
fdfcc88540
2 changed files with 1 additions and 13 deletions
|
@ -97,7 +97,7 @@ func (w *World) SpawnRover(account string) (string, error) {
|
|||
// Append the rover to the list
|
||||
w.Rovers[rover.Name] = rover
|
||||
|
||||
return rover.Name, nil
|
||||
return rover.Name, w.Accountant.AssignData(account, "rover", rover.Name)
|
||||
}
|
||||
|
||||
// GetRover gets a specific rover by name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue