mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-17 01:12:37 +01:00
fix: continues #115, song disk bug
This commit is contained in:
parent
aba4ddf2db
commit
3b9177152e
@ -1,4 +1,4 @@
|
|||||||
import { IObjectData, IRoomEngine } from '@nitrots/nitro-renderer';
|
import { IObjectData, IRoomEngine, LegacyDataType } from '@nitrots/nitro-renderer';
|
||||||
import { LocalizeText } from '../utils';
|
import { LocalizeText } from '../utils';
|
||||||
import { FurniCategory } from './FurniCategory';
|
import { FurniCategory } from './FurniCategory';
|
||||||
import { FurnitureItem } from './FurnitureItem';
|
import { FurnitureItem } from './FurnitureItem';
|
||||||
@ -322,7 +322,15 @@ export class GroupItem
|
|||||||
key = (('poster_' + k.stuffData.getLegacyString()) + '_name');
|
key = (('poster_' + k.stuffData.getLegacyString()) + '_name');
|
||||||
break;
|
break;
|
||||||
case FurniCategory.TRAX_SONG:
|
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;
|
return;
|
||||||
default:
|
default:
|
||||||
if(this.isWallItem)
|
if(this.isWallItem)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user