From e134cc5e65226640659abdd3a52e9220cad5299d Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 26 Nov 2022 02:25:02 +0100 Subject: [PATCH] make it possible to place fishbucket in flowing riverwater --- mods/ITEMS/mcl_buckets/fishbuckets.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_buckets/fishbuckets.lua b/mods/ITEMS/mcl_buckets/fishbuckets.lua index be8e24aee..1d9fbf496 100644 --- a/mods/ITEMS/mcl_buckets/fishbuckets.lua +++ b/mods/ITEMS/mcl_buckets/fishbuckets.lua @@ -26,8 +26,12 @@ local function on_place_fish(itemstack, placer, pointed_thing) local water = "mcl_core:water_source" if n.name == "mclx_core:river_water_source" then water = n.name + elseif n.name == "mclx_core:river_water_flowing" then + water = nil + end + if water then + minetest.set_node(pos,{name = water}) end - minetest.set_node(pos,{name = water}) if not placer or minetest.is_creative_enabled(placer:get_player_name()) then itemstack:set_name("mcl_buckets:bucket_empty") end