fix: continues #115, song disk bug

This commit is contained in:
Julimar Melo 2023-07-12 16:38:20 -03:00
parent aba4ddf2db
commit 3b9177152e

View File

@ -1,4 +1,4 @@
import { IObjectData, IRoomEngine } from '@nitrots/nitro-renderer';
import { IObjectData, IRoomEngine, LegacyDataType } from '@nitrots/nitro-renderer';
import { LocalizeText } from '../utils';
import { FurniCategory } from './FurniCategory';
import { FurnitureItem } from './FurnitureItem';
@ -322,7 +322,15 @@ export class GroupItem
key = (('poster_' + k.stuffData.getLegacyString()) + '_name');
break;
case FurniCategory.TRAX_SONG:
this._name = 'SONG_NAME';
if(k.stuffData instanceof LegacyDataType)
{
let stuffName = k.stuffData.getLegacyStringWithOffset(5);
// Just checking if not undefined
if(stuffName)
this._name = stuffName;
}
else
this._name = 'SONG_NAME'
return;
default:
if(this.isWallItem)