mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Fix RoomObjectModel
This commit is contained in:
parent
91bf769348
commit
27cbd6d5f9
@ -27,6 +27,11 @@ export class RoomObjectModel implements IRoomObjectModel
|
|||||||
|
|
||||||
public setValue<T>(key: string, value: T): void
|
public setValue<T>(key: string, value: T): void
|
||||||
{
|
{
|
||||||
|
if(this._map.has(key))
|
||||||
|
{
|
||||||
|
if(this._map.get(key) === value) return;
|
||||||
|
}
|
||||||
|
|
||||||
this._map.set(key, (value as T));
|
this._map.set(key, (value as T));
|
||||||
|
|
||||||
this._updateCounter++;
|
this._updateCounter++;
|
||||||
@ -45,4 +50,4 @@ export class RoomObjectModel implements IRoomObjectModel
|
|||||||
{
|
{
|
||||||
return this._updateCounter;
|
return this._updateCounter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user