forked from mtcontrib/pipeworks
fix non-working water flow sensor, add proper side texture for it
This commit is contained in:
parent
c7e9c7c160
commit
1c7f2722d6
13
devices.lua
13
devices.lua
@ -3,17 +3,20 @@
|
|||||||
if mesecon then
|
if mesecon then
|
||||||
pipereceptor_on = {
|
pipereceptor_on = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = mesecon.state.on
|
state = mesecon.state.on,
|
||||||
|
rules = mesecons_rules
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pipereceptor_off = {
|
pipereceptor_off = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = mesecon.state.off
|
state = mesecon.state.off,
|
||||||
|
rules = mesecons_rules
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
print("pipereceptor_on = "..dump(pipereceptor_on))
|
||||||
|
print("pipereceptor_off = "..dump(pipereceptor_off))
|
||||||
pipes_devicelist = {
|
pipes_devicelist = {
|
||||||
"pump",
|
"pump",
|
||||||
"valve",
|
"valve",
|
||||||
@ -575,8 +578,8 @@ minetest.register_node("pipeworks:flow_sensor_loaded", {
|
|||||||
"pipeworks_plain.png",
|
"pipeworks_plain.png",
|
||||||
"pipeworks_plain.png",
|
"pipeworks_plain.png",
|
||||||
"pipeworks_plain.png",
|
"pipeworks_plain.png",
|
||||||
pipeworks_liquid_texture.."^pipeworks_windowed_loaded.png",
|
"pipeworks_sensor_sides_on.png",
|
||||||
pipeworks_liquid_texture.."^pipeworks_windowed_loaded.png"
|
"pipeworks_sensor_sides_on.png"
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
BIN
textures/pipeworks_sensor_sides_on.png
Normal file
BIN
textures/pipeworks_sensor_sides_on.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 293 B |
Loading…
Reference in New Issue
Block a user