mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36: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
|
//@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,
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user