summaryrefslogtreecommitdiff
path: root/autodetect-finite-water.lua
diff options
context:
space:
mode:
authorroot <root@linuxworks.belug.de>2017-10-15 19:56:05 +0200
committerroot <root@linuxworks.belug.de>2017-10-15 19:56:05 +0200
commit848741a294363431a2a6e9c32ddf693951951fec (patch)
tree011f49ffd45455c86022e79dd2207f9ec002de42 /autodetect-finite-water.lua
parent7e390cfda2bafb000c1d6688da472a71e591bc94 (diff)
parent30bedbfecc57f515f3c8578e225e27671e52316b (diff)
Merge branch 'master' of https://github.com/minetest-mods/pipeworks
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