You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
🆙 Fix firework memory leak and update pixi.js
This commit is contained in:
@@ -712,6 +712,8 @@ export class RoomMessageHandler
|
||||
let postureUpdate = false;
|
||||
let postureType = RoomObjectVariable.STD;
|
||||
let parameter = '';
|
||||
let moveUpdate = false;
|
||||
let swimUpdate = false;
|
||||
|
||||
if(status.actions && status.actions.length)
|
||||
{
|
||||
@@ -736,6 +738,13 @@ export class RoomMessageHandler
|
||||
break;
|
||||
case 'wav':
|
||||
case 'mv':
|
||||
moveUpdate = true;
|
||||
postureUpdate = true;
|
||||
postureType = action.action;
|
||||
parameter = action.value;
|
||||
break;
|
||||
case 'swim':
|
||||
swimUpdate = true;
|
||||
postureUpdate = true;
|
||||
postureType = action.action;
|
||||
parameter = action.value;
|
||||
@@ -750,6 +759,12 @@ export class RoomMessageHandler
|
||||
}
|
||||
}
|
||||
|
||||
if(!moveUpdate && swimUpdate)
|
||||
{
|
||||
postureUpdate = true;
|
||||
postureType = 'float';
|
||||
}
|
||||
|
||||
if(postureUpdate) this._roomEngine.updateRoomObjectUserPosture(this._currentRoomId, status.id, postureType, parameter);
|
||||
else if(isPosture) this._roomEngine.updateRoomObjectUserPosture(this._currentRoomId, status.id, RoomObjectVariable.STD, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user