summaryrefslogtreecommitdiff
path: root/technic/machines/MV/hydro_turbine.lua
diff options
context:
space:
mode:
Diffstat (limited to 'technic/machines/MV/hydro_turbine.lua')
-rw-r--r--technic/machines/MV/hydro_turbine.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/MV/hydro_turbine.lua b/technic/machines/MV/hydro_turbine.lua
index 36aac91..e5df5e6 100644
--- a/technic/machines/MV/hydro_turbine.lua
+++ b/technic/machines/MV/hydro_turbine.lua
@@ -18,7 +18,7 @@ minetest.register_craft({
local function get_water_flow(pos)
local node = minetest.get_node(pos)
- if minetest.get_item_group(node.name, "water") == 3 then
+ if minetest.get_item_group(node.name, "water") == 3 and string.find(node.name, "flowing") then
return node.param2 -- returns approx. water flow, if any
end
return 0