1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 23:01:00 +02:00

add pointed_thing to on_rightclick vars

This commit is contained in:
tenplus1
2021-11-16 20:22:43 +00:00
parent b84374bfa5
commit 4227d967e5
4 changed files with 7 additions and 7 deletions

View File

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