Visual inconsistencies fix for TradeList.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2021-11-24 22:15:59 +00:00
parent 081478e5e6
commit f1f7cf1f59
21 changed files with 294 additions and 0 deletions

View File

@@ -616,6 +616,11 @@ public class TradeList
}
success = true;
}
// Visual inconsistencies fix.
_owner.sendItemList(false);
_partner.sendItemList(false);
// Finish the trade
partnerList.getOwner().onTradeFinish(success);
_owner.onTradeFinish(success);
@@ -831,6 +836,11 @@ public class TradeList
// Send inventory update packet
_owner.sendInventoryUpdate(ownerIU);
player.sendInventoryUpdate(playerIU);
// Visual inconsistencies fix.
_owner.sendItemList(false);
player.sendItemList(false);
return ok ? 0 : 2;
}
@@ -1025,6 +1035,10 @@ public class TradeList
// Send inventory update packet
_owner.sendInventoryUpdate(ownerIU);
player.sendInventoryUpdate(playerIU);
// Visual inconsistencies fix.
_owner.sendItemList(false);
player.sendItemList(false);
}
return ok;
}