1
0
mirror of https://gitlab.com/echoes91/throwing.git synced 2025-06-30 07:10:22 +02:00

1.1.2 fixed reloading and dependencies

This commit is contained in:
echoes91
2015-04-04 13:49:45 +02:00
parent 65e0074427
commit 3a0ac8614a
5 changed files with 89 additions and 58 deletions

View File

@ -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")