aboutsummaryrefslogtreecommitdiff
path: root/server_conn.go
diff options
context:
space:
mode:
Diffstat (limited to 'server_conn.go')
-rw-r--r--server_conn.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/server_conn.go b/server_conn.go
index 873a883..ee17978 100644
--- a/server_conn.go
+++ b/server_conn.go
@@ -358,6 +358,14 @@ func handleSrv(sc *serverConn) {
case *mt.ToCltSetHotbarParam:
prependTexture(sc.name, &cmd.Img)
sc.client().SendCmd(cmd)
+ case *mt.ToCltUpdatePlayerList:
+ if !sc.client().playerListInit {
+ sc.client().playerListInit = true
+ } else if cmd.Type == mt.InitPlayers {
+ cmd.Type = mt.AddPlayers
+ }
+
+ sc.client().SendCmd(cmd)
}
}
}