summaryrefslogtreecommitdiff
path: root/technic/machines/power_monitor.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-19 20:28:44 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-19 20:28:44 -0400
commit3c47f229fcbdb7cad28bacbc579516bf3ecf6c03 (patch)
tree375b0d50956914c61132a0d34489f627dfa2f814 /technic/machines/power_monitor.lua
parent16373a6c19c04ee82757831c5bbefe416abf900b (diff)
downloaddreambuilder_modpack-3c47f229fcbdb7cad28bacbc579516bf3ecf6c03.tar
dreambuilder_modpack-3c47f229fcbdb7cad28bacbc579516bf3ecf6c03.tar.gz
dreambuilder_modpack-3c47f229fcbdb7cad28bacbc579516bf3ecf6c03.tar.bz2
dreambuilder_modpack-3c47f229fcbdb7cad28bacbc579516bf3ecf6c03.tar.xz
dreambuilder_modpack-3c47f229fcbdb7cad28bacbc579516bf3ecf6c03.zip
drop usesdirt, update gloopblocks, led_marquee and technic
Diffstat (limited to 'technic/machines/power_monitor.lua')
-rw-r--r--technic/machines/power_monitor.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/technic/machines/power_monitor.lua b/technic/machines/power_monitor.lua
index 7e8b850..25836d6 100644
--- a/technic/machines/power_monitor.lua
+++ b/technic/machines/power_monitor.lua
@@ -35,6 +35,12 @@ minetest.register_node("technic:power_monitor",{
end,
})
+if technic.config:get_bool("enable_creative_mode") then
+ --Power distribution is not used in this mode,
+ --so the power monitor is inert and never needs to run.
+ return
+end
+
minetest.register_abm({
nodenames = {"technic:power_monitor"},
label = "Machines: run power monitor",