diff options
author | Wuzzy <almikes@aol.com> | 2017-02-11 12:39:41 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2017-02-11 12:39:41 +0100 |
commit | dfd7cae20fd8003f69986c93169ddd6678384961 (patch) | |
tree | f1fd2a89815329f64b64fd94992403bf9c9a8be0 | |
parent | 84a5f5f8c9c1c802972b3d643d4e913f00246acc (diff) |
Fix crash with tools with empty digging groups
-rw-r--r-- | init.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1027,7 +1027,11 @@ doc.add_category("tools", { end -- Final tiebreaker: Sort by group name else - return comp[1].group < comp[2].group + if comp[1].group and comp[2].group then + return comp[1].group < comp[2].group + else + return false + end end end, build_formspec = function(data, playername) |