1
0
Fork 0

Add fix to crash when moving bought villager trade item to empty sell slot bug by JoseDouglas26 (#4079)

Add fix to #4062 by JoseDouglas26 MineClone2/MineClone2#4062 (comment)

Reviewed-on: MineClone2/MineClone2#4079
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
This commit is contained in:
Eliy21 2023-12-15 03:09:48 +00:00 committed by the-real-herowl
parent ebd733be82
commit ae169b2814
1 changed files with 1 additions and 0 deletions

View File

@ -1941,6 +1941,7 @@ local trade_inventory = {
if not wanted2:is_empty() then
inv:remove_item("input", inv:get_stack("wanted", 2))
end
local name = player:get_player_name()
local trader = player_trading_with[name]
minetest.sound_play("mobs_mc_villager_accept", {to_player = player:get_player_name(),object=trader.object}, true)
end