Compare commits
No commits in common. "csm-enabled" and "master" have entirely different histories.
csm-enable
...
master
14
init.lua
14
init.lua
|
@ -1,20 +1,6 @@
|
|||
local modname = minetest.get_current_modname()
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
-- 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)
|
||||
|
||||
for _, f in ipairs{"sprint", "fire"} do
|
||||
dofile(modpath .. "/" .. f .. ".lua")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue