mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
fix wall parser
This commit is contained in:
parent
f33b7760b2
commit
aa8a68de28
@ -68,7 +68,7 @@ export class FurnitureWallDataParser
|
|||||||
|
|
||||||
const state = parseFloat(this._stuffData);
|
const state = parseFloat(this._stuffData);
|
||||||
|
|
||||||
if(!isNaN(state)) this._state = state;
|
if(!isNaN(state)) this._state = Math.trunc(state);
|
||||||
|
|
||||||
if(this._location.indexOf(':') === 0)
|
if(this._location.indexOf(':') === 0)
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,6 @@ export class FurnitureWallUpdateParser implements IMessageParser
|
|||||||
if(!wrapper) return false;
|
if(!wrapper) return false;
|
||||||
|
|
||||||
this._item = new FurnitureWallDataParser(wrapper);
|
this._item = new FurnitureWallDataParser(wrapper);
|
||||||
this._item.username = wrapper.readString();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user