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"
|
||||
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
|
||||
if not placer or minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
itemstack:set_name("mcl_buckets:bucket_empty")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue