Fixed Inventory issue

This commit is contained in:
jai.s 2020-01-10 21:10:10 +05:30
parent cb8541ea96
commit 480fc9b2e8
No known key found for this signature in database
GPG Key ID: 360CFA25EFC67D12

View File

@ -441,7 +441,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
if self.object.inventoryHash in Inventory() and Dandelion().hasHash(self.object.inventoryHash):
Dandelion().removeHash(self.object.inventoryHash, "cycle detection")
Inventory()[self.object.inventoryHash] = (
[self.object.inventoryHash] = (
self.object.objectType, self.object.streamNumber,
memoryview(self.payload[objectOffset:]), self.object.expiresTime,
memoryview(self.object.tag)