summaryrefslogtreecommitdiff
path: root/autodetect-finite-water.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-10-09 06:38:54 -0400
committerGitHub <noreply@github.com>2017-10-09 06:38:54 -0400
commita028aef9c9d82fa43e872b0802b02dbcf0fbb62c (patch)
tree173534203c946a9914dddc393361fb36ec7a8e01 /autodetect-finite-water.lua
parent879b4489b21946306004506bea51b32f6d9de6a2 (diff)
parent467907602bec6f3a7adfa3058257732a8b903214 (diff)
downloadpipeworks-a028aef9c9d82fa43e872b0802b02dbcf0fbb62c.tar
pipeworks-a028aef9c9d82fa43e872b0802b02dbcf0fbb62c.tar.gz
pipeworks-a028aef9c9d82fa43e872b0802b02dbcf0fbb62c.tar.bz2
pipeworks-a028aef9c9d82fa43e872b0802b02dbcf0fbb62c.tar.xz
pipeworks-a028aef9c9d82fa43e872b0802b02dbcf0fbb62c.zip
Merge pull request #204 from thetaepsilon-gamedev/master
More pressure_logic work
Diffstat (limited to 'autodetect-finite-water.lua')
-rw-r--r--autodetect-finite-water.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/autodetect-finite-water.lua b/autodetect-finite-water.lua
new file mode 100644
index 0000000..d218e80
--- /dev/null
+++ b/autodetect-finite-water.lua
@@ -0,0 +1,9 @@
+-- enable finite liquid in the presence of dynamic liquid to preserve water volume.
+local enable = false
+
+if minetest.get_modpath("dynamic_liquid") then
+ pipeworks.logger("detected mod dynamic_liquid, enabling finite liquid flag")
+ enable = true
+end
+
+pipeworks.toggles.finite_water = enable