1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-11-13 05:50:17 +01:00

add pointed_thing to on_rightclick vars

This commit is contained in:
TenPlus1 2021-11-16 20:22:15 +00:00
parent d31da2d069
commit 5d88766b74

View File

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