mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-11 16:33:21 +01: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
@ -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 New Issue
Block a user