forked from mtcontrib/throwing
1.1.2 fixed reloading and dependencies
This commit is contained in:
10
init.lua
10
init.lua
@ -27,7 +27,7 @@ dofile(minetest.get_modpath("throwing").."/tools.lua")
|
||||
|
||||
dofile(minetest.get_modpath("throwing").."/standard_arrows.lua")
|
||||
|
||||
if not DISABLE_FIRE_ARROW then
|
||||
if minetest.get_modpath('fire') and minetest.get_modpath('bucket') and not DISABLE_FIRE_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/fire_arrow.lua")
|
||||
end
|
||||
|
||||
@ -43,7 +43,7 @@ if not DISABLE_BUILD_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/build_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_TNT_ARROW then
|
||||
if minetest.get_modpath('fire') and minetest.get_modpath('tnt') not DISABLE_TNT_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/tnt_arrow.lua")
|
||||
end
|
||||
|
||||
@ -51,11 +51,13 @@ if not DISABLE_TORCH_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/torch_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_SHELL_ARROW then
|
||||
if minetest.get_modpath('tnt') and not DISABLE_SHELL_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/shell_arrow.lua")
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("throwing").."/fireworks_arrows.lua")
|
||||
if minetest.get_modpath('tnt') then
|
||||
dofile(minetest.get_modpath("throwing").."/fireworks_arrows.lua")
|
||||
end
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "throwing loaded")
|
||||
|
Reference in New Issue
Block a user