summaryrefslogtreecommitdiff
path: root/mesecons_hydroturbine
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-08-13 14:26:00 +0200
committerJeija <norrepli@gmail.com>2012-08-13 14:26:00 +0200
commit55bdf5441fefa21bb02bed836db40c24bcc1c1a5 (patch)
tree58f1963538c54274ea6879c742fdf91de5dcef8f /mesecons_hydroturbine
parent2b1f0d1338da20d6eca21aaf7434b3867c923ba0 (diff)
downloadmesecons-55bdf5441fefa21bb02bed836db40c24bcc1c1a5.tar
mesecons-55bdf5441fefa21bb02bed836db40c24bcc1c1a5.tar.gz
mesecons-55bdf5441fefa21bb02bed836db40c24bcc1c1a5.tar.bz2
mesecons-55bdf5441fefa21bb02bed836db40c24bcc1c1a5.tar.xz
mesecons-55bdf5441fefa21bb02bed836db40c24bcc1c1a5.zip
Code improvement, Bugfix for solar panel
Diffstat (limited to 'mesecons_hydroturbine')
-rw-r--r--mesecons_hydroturbine/init.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua
index 0a662bc..03e1ccb 100644
--- a/mesecons_hydroturbine/init.lua
+++ b/mesecons_hydroturbine/init.lua
@@ -53,7 +53,6 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_off"},
action = function(pos, node, active_object_count, active_object_count_wider)
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
if minetest.env:get_node(waterpos).name=="default:water_flowing" then
- --minetest.env:remove_node(pos)
minetest.env:add_node(pos, {name="mesecons_hydroturbine:hydro_turbine_on"})
nodeupdate(pos)
mesecon:receptor_on(pos)
@@ -68,7 +67,6 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_on"},
action = function(pos, node, active_object_count, active_object_count_wider)
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
if minetest.env:get_node(waterpos).name~="default:water_flowing" then
- --minetest.env:remove_node(pos)
minetest.env:add_node(pos, {name="mesecons_hydroturbine:hydro_turbine_off"})
nodeupdate(pos)
mesecon:receptor_off(pos)