forked from VoxeLibre/VoxeLibre
make it possible to place fishbucket in flowing riverwater
This commit is contained in:
parent
1fcedd1375
commit
e134cc5e65
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue