changed configuration
parent
dfc741f7a2
commit
b1e1368786
|
@ -0,0 +1,3 @@
|
|||
farming.add_soil=function(soil2add)
|
||||
table.insert(farming.change_soil,soil2add)
|
||||
end
|
|
@ -35,7 +35,7 @@ local test_soil = {"default:dirt","default:dirt_with_grass","default:dirt_with_d
|
|||
"default:dirt_with_coniferous_litter","default:permafrost_with_moss"}
|
||||
for i,s in ipairs(test_soil) do
|
||||
if minetest.registered_nodes[s] ~= nil then
|
||||
table.insert(farming.change_soil,s)
|
||||
farming.add_soil(s)
|
||||
end
|
||||
end
|
||||
farming.change_soil_desert = {}
|
||||
|
|
1
init.lua
1
init.lua
|
@ -13,6 +13,7 @@ minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loadi
|
|||
-- Load files
|
||||
|
||||
|
||||
dofile(farming.path .. "/api.lua") -- several helping functions
|
||||
dofile(farming.path .. "/config.lua") -- configuration of mod
|
||||
|
||||
dofile(farming.path .. "/actions_register.lua") -- several actions defined
|
||||
|
|
|
@ -10,11 +10,6 @@ local add_soil = function(item,soil)
|
|||
})
|
||||
end
|
||||
|
||||
-- override grass items
|
||||
if (farming.change_soil == nil) then
|
||||
farming.change_soil = {"default:dirt","default:dirt_with_grass","default:dirt_with_dry_grass","default:dirt_with_rainforest_litter",
|
||||
"default:dirt_with_coniferous_litter","default:permafrost_with_moss"}
|
||||
end
|
||||
for i,v in ipairs(farming.change_soil) do
|
||||
add_soil(v,"farming:soil")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue