mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-29 23:00:49 +02:00
add finite water feature toggle and auto-detect code
This commit is contained in:
9
autodetect-finite-water.lua
Normal file
9
autodetect-finite-water.lua
Normal file
@ -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
|
Reference in New Issue
Block a user