1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2025-06-29 23:00:55 +02:00

Include stack index it armor item callbacks

This commit is contained in:
stujones11
2017-04-15 17:54:39 +01:00
parent 16b0ee2d9e
commit 065815eec1
4 changed files with 38 additions and 38 deletions

View File

@ -164,7 +164,7 @@ if armor.config.drop == true or armor.config.destroy == true then
if stack:get_count() > 0 then
table.insert(drop, stack)
armor:set_inventory_stack(player, i, nil)
armor:run_callbacks("on_unequip", player, stack)
armor:run_callbacks("on_unequip", player, stack, i)
end
end
armor:set_player_armor(player)