From 927eff691c4a7629fb627aab8f960da8dd7fa472 Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 27 Nov 2022 04:02:34 +0100 Subject: [PATCH] Fix node on_rightclick with fishbucket --- mods/ITEMS/mcl_buckets/fishbuckets.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/ITEMS/mcl_buckets/fishbuckets.lua b/mods/ITEMS/mcl_buckets/fishbuckets.lua index aecd177ce0..9eb966084e 100644 --- a/mods/ITEMS/mcl_buckets/fishbuckets.lua +++ b/mods/ITEMS/mcl_buckets/fishbuckets.lua @@ -12,6 +12,12 @@ local fish_names = { local fishbucket_prefix = "mcl_buckets:bucket_" 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 if not pos then return end local n = minetest.get_node_or_nil(pos)