From 5d88766b740b2567a750c0e30af3af6091f1937b Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 16 Nov 2021 20:22:15 +0000 Subject: [PATCH] add pointed_thing to on_rightclick vars --- api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.lua b/api.lua index 0bae67d..8022605 100644 --- a/api.lua +++ b/api.lua @@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20211114", + version = "20211116", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -4337,7 +4337,7 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) if def and def.on_rightclick then return def.on_rightclick( - pointed_thing.under, under, placer, itemstack) + pointed_thing.under, under, placer, itemstack, pointed_thing) end if pos @@ -4388,7 +4388,7 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) if def and def.on_rightclick then return def.on_rightclick( - pointed_thing.under, under, placer, itemstack) + pointed_thing.under, under, placer, itemstack, pointed_thing) end if pos