Impovement
This commit is contained in:
parent
70edb0e5a1
commit
72b3489362
|
@ -19,12 +19,11 @@ namespace Syntriax.Modules.Movement
|
||||||
get => _canTakeOver;
|
get => _canTakeOver;
|
||||||
protected set
|
protected set
|
||||||
{
|
{
|
||||||
bool oldValue = _canTakeOver;
|
if (value == _canTakeOver)
|
||||||
|
return;
|
||||||
|
|
||||||
_canTakeOver = value;
|
_canTakeOver = value;
|
||||||
|
OnTakeOverStateChanged?.Invoke(value);
|
||||||
if (oldValue != value)
|
|
||||||
OnTakeOverStateChanged?.Invoke(value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue