diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-21 13:12:17 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-21 13:21:23 -0500 |
commit | 8cab1a0aec8359b14824e0d2006b05796862a962 (patch) | |
tree | 8755321d92fbb367e3e43811a096cebbf8894f80 | |
parent | 06dec2032628b475c4f02dfc9e92a58788d0912d (diff) |
don't allow standing water to power a gen,
and add support for default flowing river water
-rw-r--r-- | technic/machines/LV/water_mill.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/technic/machines/LV/water_mill.lua b/technic/machines/LV/water_mill.lua index c853310..c80707f 100644 --- a/technic/machines/LV/water_mill.lua +++ b/technic/machines/LV/water_mill.lua @@ -17,9 +17,9 @@ minetest.register_craft({ local function check_node_around_mill(pos) local node = minetest.get_node(pos) - if node.name == "default:water_flowing" or - node.name == "default:water_source" then - return true + if node.name == "default:water_flowing" + or node.name == "default:river_water_flowing" then + return node.param2 -- returns approx. water flow, if any end return false end |