summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 16895fd..3c028f2 100644
--- a/init.lua
+++ b/init.lua
@@ -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)