From 6eaf8eac622276915160b1a0220086974d47bcc0 Mon Sep 17 00:00:00 2001
From: Novatux <nathanael.courant@laposte.net>
Date: Mon, 21 Oct 2013 11:14:46 +0200
Subject: FiX CYCLIC option being ignored.

---
 default_settings.txt | 1 +
 init.lua             | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/default_settings.txt b/default_settings.txt
index eb09043..95622e6 100644
--- a/default_settings.txt
+++ b/default_settings.txt
@@ -15,3 +15,4 @@ enable_crossing_tube = true
 enable_sand_tube = true
 enable_mese_sand_tube = true
 enable_one_way_tube = true
+CYCLIC = true
diff --git a/init.lua b/init.lua
index b206337..106b471 100644
--- a/init.lua
+++ b/init.lua
@@ -8,6 +8,8 @@
 
 -- Read (and if necessary, copy) the config file
 
+local DEBUG = false
+
 local worldpath = minetest.get_worldpath()
 local modpath = minetest.get_modpath("pipeworks")
 
@@ -124,7 +126,5 @@ if enable_deployer then dofile(modpath.."/deployer.lua") end
 if enable_node_breaker then dofile(modpath.."/node_breaker.lua") end
 
 minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
-local DEBUG = false
-local CYCLIC = true
 
 print("Pipeworks loaded!")
-- 
cgit v1.2.3