Fix instabilities caused by random rocks

This commit is contained in:
Marc Di Luzio 2020-06-09 00:16:49 +01:00
parent 520f78b5c3
commit aae668fb57
7 changed files with 19 additions and 16 deletions

View file

@ -104,13 +104,13 @@ func NewServer(opts ...ServerOption) *Server {
}
// Initialise sets up internal state ready to serve
func (s *Server) Initialise() (err error) {
func (s *Server) Initialise(fillWorld bool) (err error) {
// Add to our sync
s.sync.Add(1)
// Spawn a border on the default world
if err := s.world.SpawnWorld(); err != nil {
if err := s.world.SpawnWorld(fillWorld); err != nil {
return err
}