summaryrefslogtreecommitdiff
path: root/technic/machines/switching_station.lua
diff options
context:
space:
mode:
Diffstat (limited to 'technic/machines/switching_station.lua')
-rw-r--r--technic/machines/switching_station.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua
index d645847..2d96b9b 100644
--- a/technic/machines/switching_station.lua
+++ b/technic/machines/switching_station.lua
@@ -88,6 +88,13 @@ minetest.register_node("technic:switching_station",{
},
})
+if technic.config:get_bool("enable_creative_mode") then
+ --Power distribution is not used in this mode,
+ --so the switching station is inert and none of the
+ --network processing is needed.
+ return
+end
+
--------------------------------------------------
-- Functions to traverse the electrical network
--------------------------------------------------