diff --git a/Bases/MovementBase.cs b/Bases/MovementBase.cs index 2181431..6b88214 100644 --- a/Bases/MovementBase.cs +++ b/Bases/MovementBase.cs @@ -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); } }