Small server refactor and rename

This commit is contained in:
Marc Di Luzio 2020-06-04 18:10:55 +01:00
parent da9d71bcc0
commit 6f248f1bd2
2 changed files with 7 additions and 14 deletions

View file

@ -176,7 +176,7 @@ func HandleSpawn(s *Server, b io.ReadCloser, w io.Writer) error {
fmt.Printf("\tspawn data: %v\n", data)
// Create a new instance
if pos, _, err := s.SpawnPrimary(id); err != nil {
if pos, _, err := s.SpawnPrimaryForAccount(id); err != nil {
response.Error = err.Error()
} else {
response.Success = true