Fix tt snippet to update wield filled maps as well
parent
1eaf662833
commit
0d287001f7
|
@ -219,7 +219,7 @@ function minetest.add_item(pos, stack)
|
||||||
end
|
end
|
||||||
|
|
||||||
tt.register_priority_snippet(function(itemstring, _, itemstack)
|
tt.register_priority_snippet(function(itemstring, _, itemstack)
|
||||||
if itemstack and itemstring == "mcl_maps:filled_map" then
|
if itemstack and minetest.get_item_group(itemstring, "filled_map") > 0 then
|
||||||
local id = itemstack:get_meta():get_string("mcl_maps:id")
|
local id = itemstack:get_meta():get_string("mcl_maps:id")
|
||||||
if id ~= "" then
|
if id ~= "" then
|
||||||
return "#" .. id, mcl_colors.GRAY
|
return "#" .. id, mcl_colors.GRAY
|
||||||
|
|
Loading…
Reference in New Issue