Jump to content

EntityStopWatchingWorldState


Maris
  • Fixed


local function EntityWatchWorldState(self, var, fn)
    if self.worldstatewatching == nil then
        self.worldstatewatching = {}
    end

    local watcherfns = self.worldstatewatching[var]
    if watcherfns == nil then
        watcherfns = {}
        self.worldstatewatching[var] = watcherfns
    end

    table.insert(watcherfns, var)
end

May be "fn" ??

 table.insert(watcherfns, fn) ----> fn looks much better

 


Steps to Reproduce
Read the code using opened eyes and clear mind.



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...