mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 13:26:27 +01:00
Fix old reference
This commit is contained in:
parent
2c8298a493
commit
75d8a4b385
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user