Proper RequestPostAttachment InventoryUpdate logic.
Contributed by nasseka.
This commit is contained in:
@@ -207,7 +207,7 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
||||
|
||||
if (playerIU != null)
|
||||
{
|
||||
if (newItem.getCount() > count)
|
||||
if (newItem.isStackable() && (newItem.getCount() > count))
|
||||
{
|
||||
playerIU.addModifiedItem(newItem);
|
||||
}
|
||||
@@ -216,6 +216,7 @@ public class RequestPostAttachment implements IClientIncomingPacket
|
||||
playerIU.addNewItem(newItem);
|
||||
}
|
||||
}
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_ACQUIRED_S2_S1);
|
||||
sm.addItemName(item.getId());
|
||||
sm.addLong(count);
|
||||
|
Reference in New Issue
Block a user