mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 12:22:22 +01:00
support farming_plus plants.
This commit is contained in:
parent
dbb0d51de5
commit
f53a79fe34
3
init.lua
3
init.lua
@ -31,7 +31,8 @@ digtron.builder_on_place_items = {
|
||||
|
||||
-- Then a string prefix is checked, returning this value. Useful for enabling on_placed on a mod-wide basis.
|
||||
digtron.builder_on_place_prefixes = {
|
||||
["farming:"] = true,
|
||||
["farming:"] = true,
|
||||
["farming_plus:"] = true,
|
||||
["crops:"] = true,
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ end
|
||||
|
||||
digtron.item_place_node = function(itemstack, placer, place_to, param2)
|
||||
local def = itemstack:get_definition()
|
||||
if not def or def.type ~= "node" then
|
||||
if not def then
|
||||
return itemstack, false
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user