Move the account registration into the world

This commit is contained in:
Marc Di Luzio 2020-07-24 22:50:35 +01:00
parent 6f2d67bd7c
commit fdfcc88540
2 changed files with 1 additions and 13 deletions

View file

@ -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