forked from mtcontrib/spears
Version 3.0
This commit is contained in:
18
init.lua
18
init.lua
@ -1,18 +1,14 @@
|
||||
dofile(minetest.get_modpath("spears").."/defaults.lua")
|
||||
|
||||
local input = io.open(minetest.get_modpath("spears").."/spears.conf", "r")
|
||||
if input then
|
||||
dofile(minetest.get_modpath("spears").."/spears.conf")
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
-- local input = io.open(minetest.get_modpath("spears").."/spears.conf", "r")
|
||||
-- if input then
|
||||
-- dofile(minetest.get_modpath("spears").."/spears.conf")
|
||||
-- input:close()
|
||||
-- input = nil
|
||||
-- end
|
||||
|
||||
dofile(minetest.get_modpath("spears").."/functions.lua")
|
||||
|
||||
dofile(minetest.get_modpath("spears").."/tools.lua")
|
||||
|
||||
local log_mods = minetest.settings:get_bool("log_mods")
|
||||
|
||||
if minetest.settings:get_bool("log_mods") then
|
||||
minetest.log("action", "[MOD] Spears loaded")
|
||||
end
|
||||
minetest.log("action", "[MOD] Spears loaded with throwing speed " .. minetest.settings:get("spears_throw_speed") .. " and drag coeff. " .. minetest.settings:get("spears_drag_coeff"))
|
||||
|
Reference in New Issue
Block a user