NodeListMatcher: I think groups need to be prefixed with group: when calling minetest.get_item_group

....but we'll find out in testing!
This commit is contained in:
Starbeamrainbowlabs 2023-11-27 23:19:34 +00:00
parent 050bd80cf3
commit ef86a0658a
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ function NodeListMatcher.match_group(matcher, node_id, group_name)
-- 2: Nope, not in the cache. Time to query!
local node_name = minetest.get_name_from_content_id(node_id)
local group_value = minetest.get_item_group(node_name, group_name)
local group_value = minetest.get_item_group(node_name, "group:"..group_name)
if group_value == 0 then group_value = false
else group_value = true end