diff options
-rw-r--r-- | mesecons/util.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesecons/util.lua b/mesecons/util.lua index 9e22935..b3ca7a0 100644 --- a/mesecons/util.lua +++ b/mesecons/util.lua @@ -91,7 +91,13 @@ end function mesecon:rule2meta(findrule, allrules) local index = mesecon:rule2metaindex(findrule, allrules) - if index == nil then return allrules end + if index == nil then + if allrules[1].x then + return allrules + else + return {} + end + end return allrules[index] end |