1
0
Fork 2

add finite water feature toggle and auto-detect code

Dieser Commit ist enthalten in:
thetaepsilon-gamedev 2017-10-03 20:53:49 +01:00
Ursprung 894ea5174f
Commit 750612181a
2 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen

9
autodetect-finite-water.lua Normale Datei
Datei anzeigen

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

Datei anzeigen

@ -103,6 +103,11 @@ end
-------------------------------------------
-- Load the various other parts of the mod
-- early auto-detection for finite water mode if not explicitly disabled
if pipeworks.toggles.finite_water == nil then
dofile(pipeworks.modpath.."/autodetect-finite-water.lua")
end
dofile(pipeworks.modpath.."/common.lua")
dofile(pipeworks.modpath.."/models.lua")
dofile(pipeworks.modpath.."/autoplace_pipes.lua")