12 lines
392 B
Lua
12 lines
392 B
Lua
|
-- This is a placeholder mod, to mimic i3’s presence for mods that test for mods
|
|||
|
-- that test for it using modpath or some other mechanism.
|
|||
|
-- i4 is compatible with i3, mods can use the global tables i3 or i4.
|
|||
|
|
|||
|
local storage = core.get_mod_storage("i3")
|
|||
|
local data = core.deserialize(storage:get_string"data") or {}
|
|||
|
|
|||
|
if data and not i4.imported then
|
|||
|
i4.data = data
|
|||
|
i4.imported = true
|
|||
|
end
|