You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-11-29 22:47:52 +02:00
Continue on refactor
Rename from CreatedEvents to CustomEvents
This commit is contained in:
@@ -6,7 +6,7 @@ local Poll =
|
||||
}
|
||||
local Token = require 'utils.token'
|
||||
local Server = require 'utils.server'
|
||||
local CreatedEvents = require 'utils.created_events'
|
||||
local CustomEvents = require 'utils.created_events'
|
||||
|
||||
--- This module is for the web server to call functions and raise events.
|
||||
-- Not intended to be called by scripts.
|
||||
@@ -28,11 +28,11 @@ ServerCommands.raise_scenario_changed = Server.raise_scenario_changed
|
||||
ServerCommands.get_tracked_scenario = Server.get_tracked_scenario
|
||||
|
||||
function ServerCommands.server_started()
|
||||
script.raise_event(CreatedEvents.events.on_server_started, {})
|
||||
script.raise_event(CustomEvents.events.on_server_started, {})
|
||||
end
|
||||
|
||||
function ServerCommands.changes_detected()
|
||||
script.raise_event(CreatedEvents.events.on_changes_detected, {})
|
||||
script.raise_event(CustomEvents.events.on_changes_detected, {})
|
||||
end
|
||||
|
||||
ServerCommands.set_time = Server.set_time
|
||||
|
||||
Reference in New Issue
Block a user