fix reconnect (#219)

This commit is contained in:
notify 2023-07-04 18:20:52 +08:00 committed by GitHub
parent cdc176a777
commit 9db9dd6c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ function ServerPlayer:reconnect()
room:notifyProperty(self, self, "role")
-- send player data
for _, p in ipairs(room:getOtherPlayers(self, true, true)) do
for _, p in ipairs(room:getOtherPlayers(self, false, true)) do
self:doNotify("AddPlayer", json.encode{
p.id,
p._splayer:getScreenName(),