diff options
Diffstat (limited to 'server/src/vm/source.lua')
-rw-r--r-- | server/src/vm/source.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/vm/source.lua b/server/src/vm/source.lua index 22132166..9528a67f 100644 --- a/server/src/vm/source.lua +++ b/server/src/vm/source.lua @@ -66,15 +66,15 @@ function mt:setVM() self.vm = vm end -function mt:isRemoved() - if not self.vm then - return true - end - if self.vm._removed then - self.vm = nil - return true +function mt:subscribe(value) + if self.uri == value.uri then + return end - return false + self.vm._subscribted[value] = true +end + +function mt:isRemoved() + return self.vm:isRemoved() end function mt:set(name, v) |