🐛 fixed double call on invoke local flag in ragon property
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Ragon.Client
|
|||||||
|
|
||||||
protected void InvokeChanged()
|
protected void InvokeChanged()
|
||||||
{
|
{
|
||||||
if (!InvokeLocal)
|
if (_entity.HasAuthority)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Changed?.Invoke();
|
Changed?.Invoke();
|
||||||
@@ -71,7 +71,8 @@ namespace Ragon.Client
|
|||||||
|
|
||||||
protected void MarkAsChanged()
|
protected void MarkAsChanged()
|
||||||
{
|
{
|
||||||
InvokeChanged();
|
if (InvokeLocal)
|
||||||
|
Changed?.Invoke();
|
||||||
|
|
||||||
if (_dirty || _entity == null)
|
if (_dirty || _entity == null)
|
||||||
return;
|
return;
|
||||||
@@ -112,8 +113,8 @@ namespace Ragon.Client
|
|||||||
|
|
||||||
Serialize(_propertyBuffer);
|
Serialize(_propertyBuffer);
|
||||||
|
|
||||||
var propertySize = (ushort) _propertyBuffer.WriteOffset;
|
var propertySize = (ushort)_propertyBuffer.WriteOffset;
|
||||||
buffer.WriteUShort(propertySize);;
|
buffer.WriteUShort(propertySize);
|
||||||
buffer.CopyFrom(_propertyBuffer, propertySize);
|
buffer.CopyFrom(_propertyBuffer, propertySize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user