1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-11-09 20:10:21 +01:00
pipeworks/autodetect-finite-water.lua
2017-10-03 20:53:49 +01:00

10 lines
291 B
Lua

-- 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