Fix old reference

This commit is contained in:
billsonnn 2024-03-20 23:06:39 -04:00
parent 2c8298a493
commit 75d8a4b385
2 changed files with 3 additions and 5 deletions

View File

@ -23,8 +23,6 @@ export const App: FC<{}> = props =>
//@ts-ignore //@ts-ignore
if(!NitroConfig) throw new Error('NitroConfig is not defined!'); if(!NitroConfig) throw new Error('NitroConfig is not defined!');
NitroVersion.sayHello();
await GetPixi().init({ await GetPixi().init({
autoStart: false, autoStart: false,
autoDensity: false, autoDensity: false,

View File

@ -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 { useEffect, useState } from 'react';
import { ICraftingIngredient, ICraftingRecipe, LocalizeText, SendMessageComposer } from '../../../../api'; import { ICraftingIngredient, ICraftingRecipe, LocalizeText, SendMessageComposer } from '../../../../api';
import { useMessageEvent, useNitroEvent } from '../../../events'; import { useMessageEvent, useNitroEvent } from '../../../events';
@ -76,7 +76,7 @@ const useFurnitureCraftingWidgetState = () =>
for(const recipe of parser.recipes) for(const recipe of parser.recipes)
{ {
//@ts-ignore //@ts-ignore
const itemId = GetRoomEngine().roomContentLoader._activeObjectTypeIds.get(recipe.itemName); const itemId = GetRoomContentLoader()._activeObjectTypeIds.get(recipe.itemName);
const iconUrl = GetRoomEngine().getFurnitureFloorIconUrl(itemId); const iconUrl = GetRoomEngine().getFurnitureFloorIconUrl(itemId);
newValue.push({ newValue.push({
@ -131,7 +131,7 @@ const useFurnitureCraftingWidgetState = () =>
for(const name of ingredientNames) for(const name of ingredientNames)
{ {
//@ts-ignore //@ts-ignore
const itemId = GetRoomEngine().roomContentLoader._activeObjectTypeIds.get(name); const itemId = GetRoomContentLoader()._activeObjectTypeIds.get(name);
const iconUrl = GetRoomEngine().getFurnitureFloorIconUrl(itemId); const iconUrl = GetRoomEngine().getFurnitureFloorIconUrl(itemId);
const inventoryItems = getItemsByType(itemId); const inventoryItems = getItemsByType(itemId);