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
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

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