summaryrefslogtreecommitdiff
path: root/default_settings.lua
diff options
context:
space:
mode:
authorroot <root@linuxworks.belug.de>2017-10-22 21:09:00 +0200
committerroot <root@linuxworks.belug.de>2017-10-22 21:09:00 +0200
commit31a6107b82ba1373289423b414b54b2818e61f3c (patch)
treeb1ab231598b02f7342c95ded253c8f671c9b1bd1 /default_settings.lua
parent277154cf2daf870044c6f5bac90f338552fb75df (diff)
parent75978a020751ce5591d0fd0b8adeaa32422b2fe5 (diff)
Merge branch 'master' of https://github.com/minetest-mods/pipeworks
Diffstat (limited to 'default_settings.lua')
-rw-r--r--default_settings.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/default_settings.lua b/default_settings.lua
index 91e511c..7d8bfd9 100644
--- a/default_settings.lua
+++ b/default_settings.lua
@@ -29,6 +29,36 @@ local settings = {
delete_item_on_clearobject = true,
}
+pipeworks.toggles = {}
+-- documentation for toggles controlling pressure logic features.
+-- do not edit this file directly;
+-- instead, create pipeworks_settings.txt in your world directory,
+-- and copy the uncommented lines from the block comments below into it.
+--[[
+-- flow logic implementation.
+-- set to one of the following strings.
+-- "classic": classic mode written by VanessaE
+-- "pressure": pressure metadata based, written by thetaepsilon.
+-- has caveats such as water speed issues though.
+-- setting to nil inhibits all flow logic, useful for debugging ABM crashes,
+-- or for rendering the pipes purely decorative.
+]]
+pipeworks.toggles.pipe_mode = "classic"
+--[[
+-- force-enable finite water handling mode.
+-- this changes the way that water node placement is handled;
+-- volume will always be preserved,
+-- and water is assumed to move itself downwards.
+-- nil (the default) means autodetect from installed finite liquid mods,
+-- true is force-on, false is force-off.
+-- note that you should NOT normally explicitly set this to true/false,
+-- unless the mod you want this for is not covered by auto-detection
+-- (please see autodetect-finite-water.lua).
+-- please file an issue if you have a finite water mod not covered there,
+-- and feel it necessary to explicitly set this toggle
+pipeworks.toggles.finite_water = nil
+]]
+
for name, value in pairs(settings) do
local setting_type = type(value)
if setting_type == "boolean" then