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