1
0
Fork 0

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

This commit is contained in:
Eliy21 2023-12-13 19:29:51 +00:00
parent ebd733be82
commit c28df0f791
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