From 97e17edfae21a49cc108e0cb3781b17fef2b99ba Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sat, 10 Aug 2024 16:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E4=BF=AE=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E7=B3=BB=E7=BB=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/parts/player/player.lua b/parts/player/player.lua index 07fc3eac..32b2dbd5 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -2746,6 +2746,15 @@ local function update_streaming(P) end end SELF.gameEnv.extraEventHandler[eventName](SRC,SELF,unpack(paramList)) + -- Write to stream + if SELF.type=='human' then + ins(GAME.rep,SELF.frameRun) + ins(GAME.rep,event) + ins(GAME.rep,SELF.sid) + for i=1,#paramList do + ins(GAME.rep,paramList[i]) + end + end end end P.streamProgress=P.streamProgress+2