From 750612181a67b9bf4ad4bd01c2d90472e8a41a6d Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Tue, 3 Oct 2017 20:53:49 +0100 Subject: add finite water feature toggle and auto-detect code --- autodetect-finite-water.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 autodetect-finite-water.lua (limited to 'autodetect-finite-water.lua') 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 -- cgit v1.2.3