Merge d18c71dd50eee332274faf5ad4c8e79de5b8cf12 into 19022f95a57f9c5a0efce14d32c32e508115f08e

This commit is contained in:
zeng-git 2025-08-12 09:39:36 +08:00 committed by GitHub
commit 73bcd07456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ class Trade(val info: TradeInfo) extends AbstractValue {
if (!hasRoomForRecipe(inventory, recipe)) {
result(false, "not enough inventory space to trade")
} else {
if (completeTrade(inventory, recipe, exact = true) || completeTrade(inventory, recipe, exact = false)) {
if (completeTrade(inventory, recipe, exact = true)) {
result(true)
} else {
result(false, "not enough items to trade")