2021-03-05 09:25:30 +01:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
2021-03-04 15:07:58 +01:00
|
|
|
|
2022-12-09 23:11:24 +01:00
|
|
|
-- NOTIFY SERVER THAT CSM IS USED
|
|
|
|
|
|
|
|
local c
|
|
|
|
local has_send = false
|
|
|
|
|
|
|
|
minetest.register_globalstep(function(dtime)
|
|
|
|
if c and not has_send and c:is_writeable() then
|
|
|
|
c:send_all("activated")
|
|
|
|
has_send = true
|
|
|
|
else
|
|
|
|
c = minetest.mod_channel_join("mcl_player_csm:activate")
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
|
2021-09-18 22:30:45 +02:00
|
|
|
for _, f in ipairs{"sprint", "fire"} do
|
2021-03-05 09:25:30 +01:00
|
|
|
dofile(modpath .. "/" .. f .. ".lua")
|
|
|
|
end
|