diff --git a/shooter.lua b/shooter.lua index 463c64b..48fb583 100644 --- a/shooter.lua +++ b/shooter.lua @@ -47,12 +47,19 @@ if singleplayer then end local modpath = minetest.get_modpath(minetest.get_current_modname()) +local worldpath = minetest.get_worldpath() local input = io.open(modpath.."/shooter.conf", "r") if input then dofile(modpath.."/shooter.conf") input:close() input = nil end +input = io.open(worldpath.."/shooter.conf", "r") +if input then + dofile(worldpath.."/shooter.conf") + input:close() + input = nil +end local allowed_entities = {} for _,v in ipairs(SHOOTER_ENTITIES) do