1
0
Fork 0

make it possible to place fishbucket in flowing riverwater

This commit is contained in:
cora 2022-11-26 02:25:02 +01:00
parent 1fcedd1375
commit e134cc5e65
1 changed files with 5 additions and 1 deletions

View File

@ -26,8 +26,12 @@ local function on_place_fish(itemstack, placer, pointed_thing)
local water = "mcl_core:water_source" local water = "mcl_core:water_source"
if n.name == "mclx_core:river_water_source" then if n.name == "mclx_core:river_water_source" then
water = n.name 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 end
minetest.set_node(pos,{name = water})
if not placer or minetest.is_creative_enabled(placer:get_player_name()) then if not placer or minetest.is_creative_enabled(placer:get_player_name()) then
itemstack:set_name("mcl_buckets:bucket_empty") itemstack:set_name("mcl_buckets:bucket_empty")
end end