Reworked trade replacement for better mod compatibility.
Added "maxTrades" for villagers Added "maxCommonTrades" and "maxRareTrades" for wanderer. Note that this only works when "removeOtherTrades" = true
Fixed wanderer trade check throwing an error when trying to add without replacing trades.
Added error logging to chat - this should help those who struggle to read the latest.log
v21.0 Backported the latest version of the mod Fixed /exportCVT command to export correct request amounts