Fix tt snippet to update wield filled maps as well

This commit is contained in:
Elias Fleckenstein 2021-05-02 19:18:30 +02:00 committed by Nils Dagsson Moskopp
parent 9e4d630987
commit ec23f89033
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ function minetest.add_item(pos, stack)
end
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")
if id ~= "" then
return "#" .. id, mcl_colors.GRAY