summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-08-14 18:29:06 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-08-14 18:29:06 +0100
commita501c5d0d4398cf0338e98d5880b3cb17844bc80 (patch)
tree26a60bba00ba1a6c7e564bb8b5ac03447036fad6 /init.lua
parent29d47ff0ec24dc818f6ef3b4115312a5bea8b764 (diff)
add meshoptions to api and wheat
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 07e935c..89a0a74 100644
--- a/init.lua
+++ b/init.lua
@@ -563,6 +563,7 @@ farming.register_plant = function(name, def)
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
+place_param2 = def.place_param2 or nil,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer,
@@ -606,6 +607,8 @@ farming.register_plant = function(name, def)
waving = 1,
tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"},
paramtype = "light",
+paramtype2 = def.paramtype2 or nil,
+place_param2 = def.place_param2 or nil,
walkable = false,
buildable_to = true,
drop = drop,