fix reconnect (#219)
This commit is contained in:
parent
cdc176a777
commit
9db9dd6c59
|
@ -305,7 +305,7 @@ function ServerPlayer:reconnect()
|
||||||
room:notifyProperty(self, self, "role")
|
room:notifyProperty(self, self, "role")
|
||||||
|
|
||||||
-- send player data
|
-- 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{
|
self:doNotify("AddPlayer", json.encode{
|
||||||
p.id,
|
p.id,
|
||||||
p._splayer:getScreenName(),
|
p._splayer:getScreenName(),
|
||||||
|
|
Loading…
Reference in New Issue