aboutsummaryrefslogtreecommitdiff
path: root/internal/game/tick.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/tick.go')
-rw-r--r--internal/game/tick.go3
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