Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
hack to fix a crash w/ mesecons-aware nodes w/ unexpected param2 type
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxionary committed Mar 5, 2020
1 parent 68c1729 commit b59d5d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesecons/presets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ local rules_buttonlike = {
}

local function rules_from_dir(ruleset, dir)
if not dir then return {} end
if dir.x == 1 then return ruleset.xp end
if dir.y == 1 then return ruleset.yp end
if dir.z == 1 then return ruleset.zp end
Expand Down

0 comments on commit b59d5d7

Please sign in to comment.