summaryrefslogtreecommitdiff
path: root/devices.lua
diff options
context:
space:
mode:
Diffstat (limited to 'devices.lua')
-rw-r--r--devices.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices.lua b/devices.lua
index 6d9b27b..f13fab6 100644
--- a/devices.lua
+++ b/devices.lua
@@ -44,7 +44,7 @@ local dgroups = ""
for s in ipairs(states) do
- if s == "off" then
+ if states[s] == "off" then
dgroups = {snappy=3, pipe=1}
else
dgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}