Auke Kok
f76668969e
Do not trust node.param2.
...
The table lookup will fail if node.param2 is outside [0-3] which
is easily possible since there are several ways to modify param2
values of nodes. Force truncating param2 to always be 0-3 before
using it in a table lookup.
2016-06-11 17:09:07 -07:00
Novatux
10cf11e008
A few more fixes (spamming the commit log again...)
2013-12-21 11:11:36 +01:00
Vanessa Ezekowitz
bd80f18cfc
local-ize pretty muchg everything that was previously global except where
...
stuff needs to be globally-visible. Also, fix a bad drop on valve.
2013-12-15 02:53:10 -05:00
Vanessa Ezekowitz
3d19cca557
Add fountainhead (vertical spigot, basically).
2013-10-27 22:38:19 -04:00
Vanessa Ezekowitz
b310c201b5
fix nil references in flowing_logic.lua
2013-08-07 22:16:47 -04:00
Vanessa Ezekowitz
c0af957167
added ability to disable most components via config file in world folder
...
moved pipes out of init.lua and into a separate file.
some minor formatting changes
2013-07-13 22:39:25 -04:00
Vanessa Ezekowitz
2f843fdd76
remove a bunch of useless metadata and settings
...
("pipelike" everywhere, but it isn't used for anything)
2013-07-04 03:12:45 -04:00
Vanessa Ezekowitz
7e7ddd9c95
rewrite flowing logic a bit to eliminate excessive add_node/remove_node calls
...
also got rid of obsolete optdepends
2013-07-04 00:01:08 -04:00
Vanessa Ezekowitz
17ee4f6aab
Phased out all deprecated minetest.env:* uses in favor of minetest.*
2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz
d4dddc41ec
add flow sensor. Sends mesecons signal when water is flowing through it.
2013-05-10 18:28:57 -04:00
Vanessa Ezekowitz
9231f9fa01
made valves and airtight entry panels work.
...
Removed "flowing" spigot from creative inventory.
2013-05-10 17:28:11 -04:00
Vanessa Ezekowitz
54a78297bb
remove water node at spigot only at the
...
pouring-->off transition, not repeatedly.
2013-05-10 16:17:47 -04:00
Vanessa Ezekowitz
b0d92dd358
periodically remove one water node next to each "on" pump that's also flowing
...
This should make it work more or less correctly with finite water.
also, fix a bug where a blocked spigot still looks like its pouring, and check
for blockages on every step.
2013-05-10 15:59:56 -04:00
Vanessa Ezekowitz
8f12d18b1d
fix a bug where spigot pouring would replace the node under it with
...
water. Also clean up spigot logic slightly.
2013-04-28 17:45:25 -04:00
Vanessa Ezekowitz
4e1ac10a5a
forgot to account for facedir in spigots when I added that water stream
2013-01-14 19:55:41 -05:00
Vanessa Ezekowitz
3a7b9fa31c
Added a little stub to the bottom of the spigot, showing the water texture,
...
so that when a spigot is flowing, it looks like water is actually pouring out
of it.
2013-01-14 14:34:55 -05:00
Vanessa Ezekowitz
0a1f90c391
Made pipes able to carry water!
...
It was just a minor logic error resulting from moving the water flowing code
into it's own file when I originally imported it. Many thanks to Mauvebic for
writing it!
2013-01-04 01:34:25 -05:00
Vanessa Ezekowitz
88bc800ccb
minor spacing tweaks, nothing functional
2013-01-04 01:12:39 -05:00
Vanessa Ezekowitz
6419ecb117
First stage of integrating Mauvebic's water flowing code. This is experimental
...
and doesn't move water yet - but at least it doesn't break anything :-)
2013-01-04 00:15:23 -05:00