[animal_resources] (animalmaterials) Add patches for "depends.txt" &

"weapons.lua".
master
AntumDeluge 2016-08-12 10:42:14 -07:00
parent 68157ac3d8
commit 87687defe0
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,5 @@
--- depends.txt.orig 2016-08-12 10:34:55.578548627 -0700
+++ depends.txt 2016-08-12 10:33:27.694007875 -0700
@@ -0,0 +1 @@
+throwing?
\ No newline at end of file

View File

@ -0,0 +1,27 @@
--- weapons.lua.orig 2014-09-10 13:45:19.000000000 -0700
+++ weapons.lua 2016-08-12 10:32:45.493748228 -0700
@@ -12,7 +12,7 @@
--
-- Contact sapier a t gmx net
-------------------------------------------------------------------------------
-assert(weapons_spacer == nil)
+--assert(weapons_spacer == nil)
local weapons_spacer = {} --unused to fix lua doxygen bug only
-------------------------------------------------------------------------------
@@ -460,11 +460,8 @@
groups = {not_in_creative_inventory=1},
})
-local mods = core.get_modnames()
-
-for i,v in ipairs(mods) do
- if v == element then
- print("AR: throwing mod found!")
- core.register_alias("animal_resources:arrow", "throwing:arrow")
- end
+local THROWINGDIR = minetest.get_modpath("throwing")
+if THROWINGDIR then
+ print("AR: throwing mod found!")
+ core.register_alias("animal_resources:arrow", "throwing:arrow")
end