diff --git a/crops/beans.lua b/crops/beans.lua index 59ae2ea..f1a6e16 100644 --- a/crops/beans.lua +++ b/crops/beans.lua @@ -27,7 +27,7 @@ local function place_beans(itemstack, placer, pointed_thing, plantname) -- thanks to Krock for helping with this issue :) local def = minetest.registered_nodes[under.name] if placer and itemstack and def and def.on_rightclick then - return def.on_rightclick(pt.under, under, placer, itemstack) + return def.on_rightclick(pt.under, under, placer, itemstack, pt) end -- is player planting crop? @@ -120,7 +120,7 @@ minetest.register_node("farming:beanpole", { -- thanks to Krock for helping with this issue :) local def = minetest.registered_nodes[under.name] if def and def.on_rightclick then - return def.on_rightclick(pt.under, under, placer, itemstack) + return def.on_rightclick(pt.under, under, placer, itemstack, pt) end if minetest.is_protected(pt.above, placer:get_player_name()) then diff --git a/crops/cocoa.lua b/crops/cocoa.lua index 825aaf1..190aea9 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -22,7 +22,7 @@ local function place_cocoa(itemstack, placer, pointed_thing, plantname) -- thanks to Krock for helping with this issue :) local def = minetest.registered_nodes[under.name] if placer and itemstack and def and def.on_rightclick then - return def.on_rightclick(pt.under, under, placer, itemstack) + return def.on_rightclick(pt.under, under, placer, itemstack, pt) end -- check if pointing at jungletree diff --git a/crops/grapes.lua b/crops/grapes.lua index e0c491d..47d64e0 100644 --- a/crops/grapes.lua +++ b/crops/grapes.lua @@ -22,7 +22,7 @@ local function place_grapes(itemstack, placer, pointed_thing, plantname) -- thanks to Krock for helping with this issue :) local def = minetest.registered_nodes[under.name] if placer and itemstack and def and def.on_rightclick then - return def.on_rightclick(pt.under, under, placer, itemstack) + return def.on_rightclick(pt.under, under, placer, itemstack, pt) end -- is player planting seed? @@ -115,7 +115,7 @@ minetest.register_node("farming:trellis", { -- thanks to Krock for helping with this issue :) local def = minetest.registered_nodes[under.name] if def and def.on_rightclick then - return def.on_rightclick(pt.under, under, placer, itemstack) + return def.on_rightclick(pt.under, under, placer, itemstack, pt) end if minetest.is_protected(pt.above, placer:get_player_name()) then diff --git a/init.lua b/init.lua index bd28b6c..3b0a97c 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ farming = { mod = "redo", - version = "20210928", + version = "20211116", path = minetest.get_modpath("farming"), select = { type = "fixed", @@ -425,7 +425,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname) -- thanks to Krock for helping with this issue :) local def = minetest.registered_nodes[under.name] if placer and itemstack and def and def.on_rightclick then - return def.on_rightclick(pt.under, under, placer, itemstack) + return def.on_rightclick(pt.under, under, placer, itemstack, pt) end local above = minetest.get_node(pt.above)