autodetect-finite-water.lua 291 B

12345678910
  1. -- enable finite liquid in the presence of dynamic liquid to preserve water volume.
  2. local enable = false
  3. if minetest.get_modpath("dynamic_liquid") then
  4. pipeworks.logger("detected mod dynamic_liquid, enabling finite liquid flag")
  5. enable = true
  6. end
  7. pipeworks.toggles.finite_water = enable