mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 03:55:01 +00:00
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:
parent
050bd80cf3
commit
ef86a0658a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue