From a3f07f8ce492788430066734983214dfc43b9e73 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Tue, 29 Nov 2022 01:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=9C=BA=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E7=8E=A9=E5=AE=B6uid=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=AA=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8B=E5=9B=9E=E5=90=88=E5=88=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parts/player/init.lua b/parts/player/init.lua index c84b7d05..50e15a39 100644 --- a/parts/player/init.lua +++ b/parts/player/init.lua @@ -445,7 +445,13 @@ function PLY.newPlayer(id,mini,p) local pData={ uid=USER.uid, group=0, - } if p then TABLE.coverR(p,pData) end + } if p then + TABLE.coverR(p,pData) + else + -- Default pid=1, and empty username + pData.uid=1 + P.username="" + end P.uid=pData.uid P.sid=NET.uid_sid[pData.uid] or pData.uid P.group=pData.group