mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
make it possible to place fishbucket in flowing riverwater
This commit is contained in:
parent
1fcedd1375
commit
e134cc5e65
1 changed files with 5 additions and 1 deletions
|
@ -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
|
end
|
||||||
|
if water then
|
||||||
minetest.set_node(pos,{name = water})
|
minetest.set_node(pos,{name = water})
|
||||||
|
end
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue