File: autodetect-finite-water.lua

package info (click to toggle)
minetest-mod-pipeworks 20210414.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,192 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (4)
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