add the bruh method back

This commit is contained in:
JohnCorby 2023-07-29 17:05:55 -07:00
parent 26051f8716
commit f2db3a0539

View File

@ -12,6 +12,8 @@ public abstract class BaseVariableSyncer<T> : QSBNetworkBehaviour
[NonSerialized]
public T Value;
// DO NOT REMOVE THIS METHOD
public bool Bruh() => HasChanged();
protected override bool HasChanged() => !EqualityComparer<T>.Default.Equals(PrevValue, Value);
protected override void UpdatePrevData() => PrevValue = Value;
protected override void Serialize(NetworkWriter writer) => writer.Write(Value);