Skip to content

Commit

Permalink
fix: Soft reset add interface
Browse files Browse the repository at this point in the history
  • Loading branch information
danbka33 committed Aug 14, 2023
1 parent 5464424 commit e919beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Fed1sServerMod",
"version": "1.1.24",
"version": "1.1.25",
"title": "Fed1sServerMod",
"author": "danbka33",
"contact": "",
Expand Down
9 changes: 1 addition & 8 deletions scripts/soft_reset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ function SoftReset.reset()
end
end

function SoftReset.on_init()
remote.add_interface("soft_reset_scenario", { soft_reset = SoftReset.reset })
end

local event_handlers = {}
event_handlers.on_init = SoftReset.on_init

EventHandler.add_lib(event_handlers)
remote.add_interface("soft_reset_scenario", { soft_reset = SoftReset.reset })

return SoftReset

0 comments on commit e919beb

Please sign in to comment.