mirror of
https://github.com/lcdr/luserver.git
synced 2025-12-30 18:29:33 -06:00
v2018.09.29
- fix sending a message with attachment not sending the right count
This commit is contained in:
@@ -69,7 +69,7 @@ class MailHandling:
|
||||
if attachment_item_count != 0:
|
||||
removed_item = player.inventory.remove_item(InventoryType.Max, object_id=attachment_item_object_id, count=attachment_item_count)
|
||||
object_id = server.new_object_id()
|
||||
attachment = Stack(server.db, object_id, removed_item.lot)
|
||||
attachment = Stack(server.db, object_id, removed_item.lot, attachment_item_count)
|
||||
attachment_cost = (removed_item.base_value * attachment_item_count)//10
|
||||
else:
|
||||
attachment = None
|
||||
|
||||
Reference in New Issue
Block a user