summaryrefslogtreecommitdiff
path: root/autodetect-finite-water.lua
blob: d218e80699cb53b6154e879f1d9d5a905ee655d0 (plain)
1
2
3
4
5
6
7
8
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