diff --git a/src/components/mod-tools/ModToolsView.tsx b/src/components/mod-tools/ModToolsView.tsx index f88f4ed1..a7b3c173 100644 --- a/src/components/mod-tools/ModToolsView.tsx +++ b/src/components/mod-tools/ModToolsView.tsx @@ -1,4 +1,4 @@ -import { RoomEngineObjectEvent, RoomObjectCategory } from '@nitrots/nitro-renderer'; +import { RoomEngineObjectEvent, RoomObjectCategory, RoomObjectType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useReducer, useState } from 'react'; import { GetRoomSession } from '../../api'; import { Base, Button, DraggableWindowPosition, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../common'; @@ -52,7 +52,7 @@ export const ModToolsView: FC<{}> = props => const userData = roomSession.userDataManager.getUserDataByIndex(event.objectId); - if(!userData) return; + if(!userData || userData.type !== RoomObjectType.USER) return; setSelectedUser({ userId: userData.webID, username: userData.name }); }, []);