diff options
author | Maciej Kasatkin <mk@realbadangel.pl> | 2012-09-02 18:20:35 +0200 |
---|---|---|
committer | Maciej Kasatkin <mk@realbadangel.pl> | 2012-09-02 18:20:35 +0200 |
commit | d455791cfb2d93e3625c1db103f069fa11c3d566 (patch) | |
tree | e0c32218b45e4a273d6d7c77318419bf21f86940 | |
parent | 927ed7d1572735bf982d3914aa948fc6cbfa2e11 (diff) |
Small fix blockin the geothermal
-rw-r--r-- | water_mill.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/water_mill.lua b/water_mill.lua index ad0738c..6e0120d 100644 --- a/water_mill.lua +++ b/water_mill.lua @@ -74,17 +74,17 @@ minetest.register_abm({ local load_step=0 pos.x=pos.x+1 - local check=check_node_around (pos) + local check=check_node_around_mill (pos) if check==1 then water_nodes=water_nodes+1 end pos.x=pos.x-2 - check=check_node_around (pos) + check=check_node_around_mill (pos) if check==1 then water_nodes=water_nodes+1 end pos.x=pos.x+1 pos.z=pos.z+1 - check=check_node_around (pos) + check=check_node_around_mill (pos) if check==1 then water_nodes=water_nodes+1 end pos.z=pos.z-2 - check=check_node_around (pos) + check=check_node_around_mill (pos) if check==1 then water_nodes=water_nodes+1 end pos.z=pos.z+1 @@ -121,7 +121,7 @@ minetest.register_abm({ end }) -function check_node_around (pos) +function check_node_around_mill (pos) local node=minetest.env:get_node(pos) if node.name=="default:water_flowing" then return 1 end return 0 |