aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alv/stream/value.moon5
1 files changed, 4 insertions, 1 deletions
diff --git a/alv/stream/value.moon b/alv/stream/value.moon
index 575b995..3409537 100644
--- a/alv/stream/value.moon
+++ b/alv/stream/value.moon
@@ -27,7 +27,10 @@ class ValueStream extends Stream
--- update this stream's value.
--
-- Marks this stream as dirty for the remainder of the current tick.
- set: (@value) => @updated = COPILOT.T
+ set: (value) =>
+ if value != @value
+ @value = value
+ @updated = COPILOT.T
--- unwrap to the Lua type.
--