Renamethe spawn world function

This commit is contained in:
Marc Di Luzio 2020-06-07 23:05:55 +01:00
parent de0ccbaa6e
commit 65818ed0e1
2 changed files with 3 additions and 3 deletions

View file

@ -36,8 +36,8 @@ func NewWorld() *World {
} }
} }
// SpawnWorldBorder spawns a border at the edge of the world atlas // SpawnWorld spawns a border at the edge of the world atlas
func (w *World) SpawnWorldBorder() error { func (w *World) SpawnWorld() error {
return w.Atlas.SpawnWorld() return w.Atlas.SpawnWorld()
} }

View file

@ -110,7 +110,7 @@ func (s *Server) Initialise() (err error) {
s.sync.Add(1) s.sync.Add(1)
// Spawn a border on the default world // Spawn a border on the default world
if err := s.world.SpawnWorldBorder(); err != nil { if err := s.world.SpawnWorld(); err != nil {
return err return err
} }