Small fix blockin the geothermal
authorMaciej Kasatkin <mk@realbadangel.pl>
Sun, 2 Sep 2012 16:20:35 +0000 (18:20 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Sun, 2 Sep 2012 16:20:35 +0000 (18:20 +0200)
water_mill.lua

index ad0738cbeb5b4eaf67b161c6af3a419fae34153f..6e0120d9c06105930d83cd46c62ba5c334e98c12 100644 (file)
@@ -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