Skip to content

Commit

Permalink
Update to 0.9.16
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed Dec 22, 2021
1 parent 87ae0a9 commit 63cdf0c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.9.16
Date: 22. 12. 2021
Changes:
- Changed event handler (slightly better performance)
---------------------------------------------------------------------------------------------------
Version: 0.9.15
Date: 28. 09. 2021
Changes:
Expand Down
9 changes: 7 additions & 2 deletions control.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local event_handler = require("event_handler")

---@type table<string, module>
local modules = {}
modules["lua-compiler"] = require("models/lua-compiler")
Expand All @@ -14,4 +12,11 @@ if remote.interfaces["disable-lua-compiler"] then
module.add_commands = nil
end


local event_handler
if script.active_mods["zk-lib"] then
event_handler = require("__zk-lib__/static-libs/lualibs/event_handler_vZO.lua")
else
event_handler = require("event_handler")
end
event_handler.add_libraries(modules)
7 changes: 5 additions & 2 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "lua-compiler",
"version": "0.9.15",
"version": "0.9.16",
"factorio_version": "1.1",
"title": "Lua Compiler",
"author": "ZwerOxotnik",
"contact": "[email protected], Discord:ZwerOxotnik#7117",
"dependencies": ["base"]
"dependencies": [
"? zk-lib >= 0.10.0",
"base"
]
}
7 changes: 6 additions & 1 deletion scenarios/for map/control.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
if script.active_mods["lua-compiler"] then
local event_handler = require("event_handler")
local event_handler
if script.active_mods["zk-lib"] then
event_handler = require("__zk-lib__/static-libs/lualibs/event_handler_vZO.lua")
else
event_handler = require("event_handler")
end
event_handler.add_lib(require("__lua-compiler__/models/lua-compiler"))
end

0 comments on commit 63cdf0c

Please sign in to comment.