1
0
mirror of https://bitbucket.org/minetest_gamers/x_enchanting.git synced 2025-06-30 14:50:23 +02:00

cleanup and store final_enchantments to itemstack meta

This commit is contained in:
Juraj Vajda
2022-11-09 21:25:15 -05:00
parent c53e9f3e48
commit f3b9efbbff
3 changed files with 9 additions and 6 deletions

View File

@ -427,10 +427,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Enchant item
XEnchanting:set_enchanted_tool(
pos,
item_stack,
data.slots[selected_slot].tool_cap_data.tool_capabilities,
data.slots[selected_slot].tool_cap_data.enchantments_desc,
selected_slot,
p_name
)