summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-10-18 23:27:46 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-10-18 23:27:46 -0600
commitf53a79fe34c63acb388e17b3a73eca5b1a54d854 (patch)
tree97d6475eed95174e077352882d8140256362dd3a
parentdbb0d51de5dcc46c558f7c14e73ce610c1806d77 (diff)
support farming_plus plants.
-rw-r--r--init.lua3
-rw-r--r--util_item_place_node.lua2
2 files changed, 3 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 118fa60..d2c6214 100644
--- a/init.lua
+++ b/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,
}
diff --git a/util_item_place_node.lua b/util_item_place_node.lua
index 5d7a7d9..049bf71 100644
--- a/util_item_place_node.lua
+++ b/util_item_place_node.lua
@@ -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