mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
Merge pull request #230 from hotellidev/multicolorfurnifix
Fix multicolor furni names
This commit is contained in:
@@ -102,16 +102,20 @@ export class AvatarInfoUtilities
|
||||
else
|
||||
{
|
||||
let furnitureData: IFurnitureData = null;
|
||||
const className = roomObject.type;
|
||||
|
||||
const typeId = model.getValue<number>(RoomObjectVariable.FURNITURE_TYPE_ID);
|
||||
|
||||
if(typeId > 0)
|
||||
{
|
||||
if(category === RoomObjectCategory.FLOOR)
|
||||
{
|
||||
furnitureData = GetSessionDataManager().getFloorItemDataByName(className);
|
||||
furnitureData = GetSessionDataManager().getFloorItemData(typeId);
|
||||
}
|
||||
|
||||
else if(category === RoomObjectCategory.WALL)
|
||||
{
|
||||
furnitureData = GetSessionDataManager().getWallItemDataByName(className);
|
||||
furnitureData = GetSessionDataManager().getWallItemData(typeId);
|
||||
}
|
||||
}
|
||||
|
||||
if(furnitureData)
|
||||
|
||||
Reference in New Issue
Block a user