Skip to content

Commit

Permalink
remove skipping the first frame
Browse files Browse the repository at this point in the history
  • Loading branch information
XeroOl committed Dec 21, 2024
1 parent ff071ee commit 65bb7d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion spec/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function helper.on()
end
end
mock.on_happened = true
helper.update(0)
end

function helper.update(dt)
Expand Down
6 changes: 1 addition & 5 deletions template/template.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1656,11 +1656,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.
Expand Down

0 comments on commit 65bb7d3

Please sign in to comment.