don't allow standing water to power a gen,

and add support for default flowing river water
This commit is contained in:
Vanessa Ezekowitz 2017-02-21 13:12:17 -05:00
parent 06dec20326
commit 8cab1a0aec

View File

@ -17,9 +17,9 @@ minetest.register_craft({
local function check_node_around_mill(pos) local function check_node_around_mill(pos)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
if node.name == "default:water_flowing" or if node.name == "default:water_flowing"
node.name == "default:water_source" then or node.name == "default:river_water_flowing" then
return true return node.param2 -- returns approx. water flow, if any
end end
return false return false
end end