summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-03 20:53:49 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-03 20:53:49 +0100
commit750612181a67b9bf4ad4bd01c2d90472e8a41a6d (patch)
tree639ecdf5368fa55496297d0a707a2fe9f9eb1edc /init.lua
parent894ea5174fb8c3be9038698cb119b24acbec8cea (diff)
downloadpipeworks-750612181a67b9bf4ad4bd01c2d90472e8a41a6d.tar
pipeworks-750612181a67b9bf4ad4bd01c2d90472e8a41a6d.tar.gz
pipeworks-750612181a67b9bf4ad4bd01c2d90472e8a41a6d.tar.bz2
pipeworks-750612181a67b9bf4ad4bd01c2d90472e8a41a6d.tar.xz
pipeworks-750612181a67b9bf4ad4bd01c2d90472e8a41a6d.zip
add finite water feature toggle and auto-detect code
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 8bae8e8..8974005 100644
--- a/init.lua
+++ b/init.lua
@@ -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")