support farming_plus plants.

This commit is contained in:
FaceDeer 2017-10-18 23:27:46 -06:00
parent dbb0d51de5
commit f53a79fe34
2 changed files with 3 additions and 2 deletions

@ -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