From 587e8c02ca432f91c5f1d3eddd04a7c902f946bd Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 20 Jun 2021 01:22:35 -0400 Subject: [PATCH] Update infostand handler --- src/views/room/handlers/RoomWidgetInfostandHandler.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/views/room/handlers/RoomWidgetInfostandHandler.ts b/src/views/room/handlers/RoomWidgetInfostandHandler.ts index 50c85062..5e523843 100644 --- a/src/views/room/handlers/RoomWidgetInfostandHandler.ts +++ b/src/views/room/handlers/RoomWidgetInfostandHandler.ts @@ -249,13 +249,7 @@ export class RoomWidgetInfostandHandler extends RoomWidgetHandler roomObjectImage = GetRoomEngine().getRoomObjectImage(roomId, message.id, message.category, new Vector3d(180), 1, null); } - if(roomObjectImage && roomObjectImage.data) - { - const image = Nitro.instance.renderer.extract.image(roomObjectImage.data); - - if(image) event.image = image; - } - + event.image = roomObjectImage.getImage(); event.isWallItem = (message.category === RoomObjectCategory.WALL); event.isRoomOwner = this.roomSession.isRoomOwner; event.roomControllerLevel = this.roomSession.controllerLevel;