mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-25 09:50:19 +01:00
Fix #197, doesn't remove the legacy code that triggered it though
This commit is contained in:
parent
011543a782
commit
dca4706c7f
@ -59,7 +59,6 @@ end
|
||||
|
||||
function mesecon.rule2metaindex(findrule, allrules)
|
||||
--get the metarule the rule is in, or allrules
|
||||
|
||||
if allrules[1].x then
|
||||
return nil
|
||||
end
|
||||
@ -78,6 +77,8 @@ function mesecon.rule2metaindex(findrule, allrules)
|
||||
end
|
||||
|
||||
function mesecon.rule2meta(findrule, allrules)
|
||||
if #allrules == 0 then return {} end
|
||||
|
||||
local index = mesecon.rule2metaindex(findrule, allrules)
|
||||
if index == nil then
|
||||
if allrules[1].x then
|
||||
|
Loading…
Reference in New Issue
Block a user