mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-08-21 05:24:11 +02: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)
|
function mesecon.rule2metaindex(findrule, allrules)
|
||||||
--get the metarule the rule is in, or allrules
|
--get the metarule the rule is in, or allrules
|
||||||
|
|
||||||
if allrules[1].x then
|
if allrules[1].x then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@ -78,6 +77,8 @@ function mesecon.rule2metaindex(findrule, allrules)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mesecon.rule2meta(findrule, allrules)
|
function mesecon.rule2meta(findrule, allrules)
|
||||||
|
if #allrules == 0 then return {} end
|
||||||
|
|
||||||
local index = mesecon.rule2metaindex(findrule, allrules)
|
local index = mesecon.rule2metaindex(findrule, allrules)
|
||||||
if index == nil then
|
if index == nil then
|
||||||
if allrules[1].x then
|
if allrules[1].x then
|
||||||
|
Loading…
Reference in New Issue
Block a user