fixed wrong veriable in creative inventory filter
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 20 Aug 2012 07:38:38 +0000 (03:38 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 20 Aug 2012 07:38:38 +0000 (03:38 -0400)
devices.lua

index 6d9b27b722afb5665a2bc4c355bc93c0eaaa2a7e..f13fab6cda9c87297a4db2a1a54100c80e4092c7 100644 (file)
@@ -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}