mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +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"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue