We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0ad9b0 commit 557c3afCopy full SHA for 557c3af
src/main/kotlin/com/lambda/interaction/request/inventory/InventoryManager.kt
@@ -46,10 +46,6 @@ object InventoryManager : RequestHandler<InventoryRequest>(
46
private var actionsThisSecond = 0
47
private var secondCounter = 0
48
private var actionsThisTick = 0
49
- set(value) {
50
- field += value
51
- actionsThisSecond+= value
52
- }
53
54
override val logger = inventoryManagerLogger
55
@@ -91,6 +87,7 @@ object InventoryManager : RequestHandler<InventoryRequest>(
91
87
if (actionsThisSecond + 1 > maxActionsThisSecond && !request.mustPerform) break
92
88
iterator.next()()
93
89
actionsThisTick++
90
+ actionsThisSecond++
94
iterator.remove()
95
}
96
0 commit comments