mirror of
https://github.com/rubenwardy/food.git
synced 2024-12-23 00:10:18 +01:00
Update support.lua
This commit is contained in:
parent
203ae5d420
commit
ebb81cce88
@ -9,6 +9,12 @@
|
||||
-- ======================================
|
||||
|
||||
print "Food [Support] - Initialising"
|
||||
|
||||
--NODE_IMPLEMENT() Gets an item from another mod softly
|
||||
-- modname: the name of the mod that the item will be got from
|
||||
-- n_ext: the name of the item that we want to get
|
||||
-- n_int: the name we want to save the item so we can load it as an ingredient
|
||||
-- resultfunc: if the mod does not exist, then do this function
|
||||
function node_implement(modname,n_ext,n_int,resultfunc)
|
||||
if not minetest.get_modpath(modname) then
|
||||
-- Mod is NOT installed
|
||||
|
Loading…
Reference in New Issue
Block a user