mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 20:32:22 +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.
|
-- Then a string prefix is checked, returning this value. Useful for enabling on_placed on a mod-wide basis.
|
||||||
digtron.builder_on_place_prefixes = {
|
digtron.builder_on_place_prefixes = {
|
||||||
["farming:"] = true,
|
["farming:"] = true,
|
||||||
|
["farming_plus:"] = true,
|
||||||
["crops:"] = true,
|
["crops:"] = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ end
|
|||||||
|
|
||||||
digtron.item_place_node = function(itemstack, placer, place_to, param2)
|
digtron.item_place_node = function(itemstack, placer, place_to, param2)
|
||||||
local def = itemstack:get_definition()
|
local def = itemstack:get_definition()
|
||||||
if not def or def.type ~= "node" then
|
if not def then
|
||||||
return itemstack, false
|
return itemstack, false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user