mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix node on_rightclick with fishbucket
This commit is contained in:
parent
efdd22d69f
commit
927eff691c
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,12 @@ local fish_names = {
|
||||||
local fishbucket_prefix = "mcl_buckets:bucket_"
|
local fishbucket_prefix = "mcl_buckets:bucket_"
|
||||||
|
|
||||||
local function on_place_fish(itemstack, placer, pointed_thing)
|
local function on_place_fish(itemstack, placer, pointed_thing)
|
||||||
|
|
||||||
|
local new_stack = mcl_util.call_on_rightclick(itemstack, placer, pointed_thing)
|
||||||
|
if new_stack then
|
||||||
|
return new_stack
|
||||||
|
end
|
||||||
|
|
||||||
local pos = pointed_thing.above or pointed_thing.under
|
local pos = pointed_thing.above or pointed_thing.under
|
||||||
if not pos then return end
|
if not pos then return end
|
||||||
local n = minetest.get_node_or_nil(pos)
|
local n = minetest.get_node_or_nil(pos)
|
||||||
|
|
Loading…
Reference in a new issue