diff --git a/spec/helper.lua b/spec/helper.lua index 86d3b02..3f7060c 100644 --- a/spec/helper.lua +++ b/spec/helper.lua @@ -66,7 +66,6 @@ function helper.on() end end mock.on_happened = true - helper.update(0) end function helper.update(dt) diff --git a/template/template.lua b/template/template.lua index 535db28..e855cec 100644 --- a/template/template.lua +++ b/template/template.lua @@ -1657,10 +1657,7 @@ function xero.init_command(self) -- Update command is called every frame. It is what sets the mod values every frame, -- and reads through everything that's been queued by the user. -- Delay one frame because the escape menu issue - self:addcommand('Update', function() - self:removecommand('Update') - self:addcommand('Update', update_command) - end) + self:addcommand('Update', update_command) -- NotITG and OpenITG have a long standing bug where the InitCommand on an actor can run twice in certain cases. -- By removing the command here (at the end of init_command), we prevent it from being run again.