mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-27 23:00:29 +02:00
Handle invalid param2 in presets.lua
This commit is contained in:
parent
da57a6214a
commit
b52ba9a450
|
@ -64,6 +64,8 @@ local rules_buttonlike = {
|
||||||
}
|
}
|
||||||
|
|
||||||
local function rules_from_dir(ruleset, dir)
|
local function rules_from_dir(ruleset, dir)
|
||||||
|
if not dir then return {} end
|
||||||
|
|
||||||
if dir.x == 1 then return ruleset.xp end
|
if dir.x == 1 then return ruleset.xp end
|
||||||
if dir.y == 1 then return ruleset.yp end
|
if dir.y == 1 then return ruleset.yp end
|
||||||
if dir.z == 1 then return ruleset.zp end
|
if dir.z == 1 then return ruleset.zp end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user