Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnItemSplit(Item item, int amount)
- {
- if (item.GetOwnerPlayer() is BasePlayer)
- {
- OnlinePlayer onlinePlayer;
- if (onlinePlayers.TryGetValue(item.GetOwnerPlayer(), out onlinePlayer) && onlinePlayer.Trade != null)
- {
- OpenTrade t = onlinePlayers[item.GetOwnerPlayer()].Trade;
- if (!t.complete)
- {
- t.ResetAcceptance();
- if (t.IsValid())
- {
- NextTick(() => ShowTrades(t, "Trade: Pending"));
- }
- else
- {
- TradeCloseBoxes(t);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment