diff options
| author | historia <[not public]> | 2026-07-17 20:15:57 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-17 20:15:57 -0400 |
| commit | 9898d42f2d4ef61b5cbec7e212914d1495e04772 (patch) | |
| tree | afa604ad77a7a03832ebbd60e77c47d4961b9d77 /internal/game/tick.go | |
| parent | c23c87b56fd568956d263bb8b8c5d26fbd8d01ee (diff) | |
| download | thehouseoficarus-9898d42f2d4ef61b5cbec7e212914d1495e04772.tar.gz | |
feat: add deterministic order to mob/player tick processing, document how tick processing works
Diffstat (limited to 'internal/game/tick.go')
| -rw-r--r-- | internal/game/tick.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/game/tick.go b/internal/game/tick.go index d765983..8910137 100644 --- a/internal/game/tick.go +++ b/internal/game/tick.go @@ -161,6 +161,9 @@ func (g *Game) WanderTick() { } func (g *Game) SharedDepletionTick() { + if g.Hub == nil { + return + } activeKeys := make(map[string]bool) for _, sess := range g.Hub.AllSessions() { p := sess.Player |
