mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Update infostand handler
This commit is contained in:
parent
ca7ccfa55a
commit
587e8c02ca
@ -249,13 +249,7 @@ export class RoomWidgetInfostandHandler extends RoomWidgetHandler
|
|||||||
roomObjectImage = GetRoomEngine().getRoomObjectImage(roomId, message.id, message.category, new Vector3d(180), 1, null);
|
roomObjectImage = GetRoomEngine().getRoomObjectImage(roomId, message.id, message.category, new Vector3d(180), 1, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(roomObjectImage && roomObjectImage.data)
|
event.image = roomObjectImage.getImage();
|
||||||
{
|
|
||||||
const image = Nitro.instance.renderer.extract.image(roomObjectImage.data);
|
|
||||||
|
|
||||||
if(image) event.image = image;
|
|
||||||
}
|
|
||||||
|
|
||||||
event.isWallItem = (message.category === RoomObjectCategory.WALL);
|
event.isWallItem = (message.category === RoomObjectCategory.WALL);
|
||||||
event.isRoomOwner = this.roomSession.isRoomOwner;
|
event.isRoomOwner = this.roomSession.isRoomOwner;
|
||||||
event.roomControllerLevel = this.roomSession.controllerLevel;
|
event.roomControllerLevel = this.roomSession.controllerLevel;
|
||||||
|
Loading…
Reference in New Issue
Block a user