Impovement

This commit is contained in:
Syntriax 2022-12-02 00:09:54 +03:00
parent 70edb0e5a1
commit 72b3489362
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}
}