mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 03:28:26 +00:00
add the bruh method back
This commit is contained in:
parent
26051f8716
commit
f2db3a0539
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user