diff --git a/src/App.tsx b/src/App.tsx index 9468ba56..d9bfe733 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,8 +23,6 @@ export const App: FC<{}> = props => //@ts-ignore if(!NitroConfig) throw new Error('NitroConfig is not defined!'); - NitroVersion.sayHello(); - await GetPixi().init({ autoStart: false, autoDensity: false, diff --git a/src/hooks/rooms/widgets/furniture/useFurnitureCraftingWidget.ts b/src/hooks/rooms/widgets/furniture/useFurnitureCraftingWidget.ts index bd4beef2..d2bca205 100644 --- a/src/hooks/rooms/widgets/furniture/useFurnitureCraftingWidget.ts +++ b/src/hooks/rooms/widgets/furniture/useFurnitureCraftingWidget.ts @@ -1,4 +1,4 @@ -import { CraftableProductsEvent, CraftComposer, CraftingRecipeEvent, CraftingRecipeIngredientParser, CraftingRecipesAvailableEvent, CraftingResultEvent, GetCraftableProductsComposer, GetCraftingRecipeComposer, GetRoomEngine, RoomEngineTriggerWidgetEvent, RoomWidgetEnum } from '@nitrots/nitro-renderer'; +import { CraftableProductsEvent, CraftComposer, CraftingRecipeEvent, CraftingRecipeIngredientParser, CraftingRecipesAvailableEvent, CraftingResultEvent, GetCraftableProductsComposer, GetCraftingRecipeComposer, GetRoomContentLoader, GetRoomEngine, RoomEngineTriggerWidgetEvent, RoomWidgetEnum } from '@nitrots/nitro-renderer'; import { useEffect, useState } from 'react'; import { ICraftingIngredient, ICraftingRecipe, LocalizeText, SendMessageComposer } from '../../../../api'; import { useMessageEvent, useNitroEvent } from '../../../events'; @@ -76,7 +76,7 @@ const useFurnitureCraftingWidgetState = () => for(const recipe of parser.recipes) { //@ts-ignore - const itemId = GetRoomEngine().roomContentLoader._activeObjectTypeIds.get(recipe.itemName); + const itemId = GetRoomContentLoader()._activeObjectTypeIds.get(recipe.itemName); const iconUrl = GetRoomEngine().getFurnitureFloorIconUrl(itemId); newValue.push({ @@ -131,7 +131,7 @@ const useFurnitureCraftingWidgetState = () => for(const name of ingredientNames) { //@ts-ignore - const itemId = GetRoomEngine().roomContentLoader._activeObjectTypeIds.get(name); + const itemId = GetRoomContentLoader()._activeObjectTypeIds.get(name); const iconUrl = GetRoomEngine().getFurnitureFloorIconUrl(itemId); const inventoryItems = getItemsByType(itemId);