mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-11-19 21:33:43 +01:00
support farming_plus plants.
This commit is contained in:
parent
dbb0d51de5
commit
f53a79fe34
1
init.lua
1
init.lua
@ -32,6 +32,7 @@ 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_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