Itemshow now uses rp_item_update

This commit is contained in:
Wuzzy 2024-10-24 23:24:43 +02:00
parent c574d033d8
commit c04a6fd6cc
2 changed files with 7 additions and 1 deletions

View File

@ -217,6 +217,12 @@ minetest.register_entity("rp_itemshow:item",{
end
if item and item ~= "" then
local itemstack = ItemStack(item)
local new_itemstack = rp_item_update.update_item(itemstack)
if new_itemstack then
item = new_itemstack:to_string()
end
self:_configure(item, nodename, rotate_dir)
end
end,

View File

@ -1,4 +1,4 @@
name = rp_itemshow
description = Item frames and item showcases
depends = rp_sounds, rp_default
depends = rp_sounds, rp_default, rp_item_update
optional_depends = rp_itemdef_defaults