Update infostand handler

This commit is contained in:
Bill 2021-06-20 01:22:35 -04:00
parent ca7ccfa55a
commit 587e8c02ca

View File

@ -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;