mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-10 18:00:20 +01:00
add pointed_thing to on_rightclick vars
This commit is contained in:
parent
d31da2d069
commit
5d88766b74
6
api.lua
6
api.lua
@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20211114",
|
version = "20211116",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
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
|
if def and def.on_rightclick then
|
||||||
|
|
||||||
return def.on_rightclick(
|
return def.on_rightclick(
|
||||||
pointed_thing.under, under, placer, itemstack)
|
pointed_thing.under, under, placer, itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
if pos
|
if pos
|
||||||
@ -4388,7 +4388,7 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
|||||||
if def and def.on_rightclick then
|
if def and def.on_rightclick then
|
||||||
|
|
||||||
return def.on_rightclick(
|
return def.on_rightclick(
|
||||||
pointed_thing.under, under, placer, itemstack)
|
pointed_thing.under, under, placer, itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
if pos
|
if pos
|
||||||
|
Loading…
Reference in New Issue
Block a user