From 65818ed0e1d782f10afc1dfbcf6c78c269356244 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sun, 7 Jun 2020 23:05:55 +0100 Subject: [PATCH] Renamethe spawn world function --- pkg/game/world.go | 4 ++-- pkg/server/server.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/game/world.go b/pkg/game/world.go index 68ece50..7736551 100644 --- a/pkg/game/world.go +++ b/pkg/game/world.go @@ -36,8 +36,8 @@ func NewWorld() *World { } } -// SpawnWorldBorder spawns a border at the edge of the world atlas -func (w *World) SpawnWorldBorder() error { +// SpawnWorld spawns a border at the edge of the world atlas +func (w *World) SpawnWorld() error { return w.Atlas.SpawnWorld() } diff --git a/pkg/server/server.go b/pkg/server/server.go index 0f06c62..9ad1c21 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -110,7 +110,7 @@ func (s *Server) Initialise() (err error) { s.sync.Add(1) // Spawn a border on the default world - if err := s.world.SpawnWorldBorder(); err != nil { + if err := s.world.SpawnWorld(); err != nil { return err }