From 480fc9b2e896fd97ea3deabf605c959fc84e2295 Mon Sep 17 00:00:00 2001 From: "jai.s" Date: Fri, 10 Jan 2020 21:10:10 +0530 Subject: [PATCH] Fixed Inventory issue --- src/network/bmproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index 698f6df9..e56b2963 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -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)