Send full list to avoid duplicates.
Contributed by nasseka.
This commit is contained in:
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -230,10 +230,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendPacket(playerIU);
|
player.sendPacket(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendPacket(new ItemList(player, false));
|
||||||
player.sendPacket(new ItemList(player, false));
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -230,10 +230,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendPacket(playerIU);
|
player.sendPacket(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendPacket(new ItemList(player, false));
|
||||||
player.sendPacket(new ItemList(player, false));
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList(false);
|
||||||
player.sendItemList(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
@@ -228,10 +228,8 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.sendInventoryUpdate(playerIU);
|
player.sendInventoryUpdate(playerIU);
|
||||||
}
|
}
|
||||||
else
|
// Send full list to avoid duplicates.
|
||||||
{
|
player.sendItemList();
|
||||||
player.sendItemList();
|
|
||||||
}
|
|
||||||
|
|
||||||
msg.removeAttachments();
|
msg.removeAttachments();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user