Add basic entity tracking, mob spawning and syncing
This commit is contained in:
parent
7e285e8068
commit
7af0acd3a3
6 changed files with 238 additions and 7 deletions
|
|
@ -46,6 +46,8 @@ func main() {
|
|||
saveCtx, saveStop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
||||
autosaveDone := srv.Chunks().StartAutosave(saveCtx, log, 30*time.Second)
|
||||
|
||||
srv.StartSpawning()
|
||||
|
||||
ln := network.NewListener(srv, log)
|
||||
|
||||
// ListenAndServe blocks until the listener stops (on the same signals).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue