Skip to content

Commit

Permalink
add pointed_thing to on_rightclick vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed Nov 16, 2021
1 parent d31da2d commit 5d88766
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d88766

Please sign in to comment.