mirror of
https://github.com/minetest-mods/technic.git
synced 2024-08-20 21:44:14 +02:00
don't allow standing water to power a gen,
and add support for default flowing river water
This commit is contained in:
parent
06dec20326
commit
8cab1a0aec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user