fix non-working water flow sensor, add proper side texture for it
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 9 Nov 2013 18:17:56 +0000 (13:17 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 9 Nov 2013 18:21:19 +0000 (13:21 -0500)
devices.lua
textures/pipeworks_sensor_sides_on.png [new file with mode: 0644]

index 6101a4dbb4292b78d97c76a46077308ec9e9dcd0..0fa28ecc8d91f30d73e4bd25ac57d6ade87cb126 100644 (file)
@@ -3,17 +3,20 @@
 if mesecon then
        pipereceptor_on = {
                receptor = {
-                       state = mesecon.state.on
+                       state = mesecon.state.on,
+                       rules = mesecons_rules
                }
        }
 
        pipereceptor_off = {
                receptor = {
-                       state = mesecon.state.off
+                       state = mesecon.state.off,
+                       rules = mesecons_rules
                }
        }
 end
-
+print("pipereceptor_on = "..dump(pipereceptor_on))
+print("pipereceptor_off = "..dump(pipereceptor_off))
 pipes_devicelist = {
        "pump",
        "valve",
@@ -575,8 +578,8 @@ minetest.register_node("pipeworks:flow_sensor_loaded", {
                "pipeworks_plain.png",
                "pipeworks_plain.png",
                "pipeworks_plain.png",
-               pipeworks_liquid_texture.."^pipeworks_windowed_loaded.png",
-               pipeworks_liquid_texture.."^pipeworks_windowed_loaded.png"
+               "pipeworks_sensor_sides_on.png",
+               "pipeworks_sensor_sides_on.png"
        },
        sunlight_propagates = true,
        paramtype = "light",
diff --git a/textures/pipeworks_sensor_sides_on.png b/textures/pipeworks_sensor_sides_on.png
new file mode 100644 (file)
index 0000000..3551191
Binary files /dev/null and b/textures/pipeworks_sensor_sides_on.png differ