From 750612181a67b9bf4ad4bd01c2d90472e8a41a6d Mon Sep 17 00:00:00 2001
From: thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>
Date: Tue, 3 Oct 2017 20:53:49 +0100
Subject: add finite water feature toggle and auto-detect code

---
 init.lua | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'init.lua')

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")
-- 
cgit v1.2.3