Skip to content

Commit 8a46bd2

Browse files
committed
give activeThisTick a protected setter and remove the getter method
1 parent 58c2e7f commit 8a46bd2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

common/src/main/kotlin/com/lambda/interaction/request/RequestHandler.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ abstract class RequestHandler<R : Request> {
3434
/**
3535
* Represents if the handler performed any external actions within this tick
3636
*/
37-
protected var activeThisTick = false
37+
var activeThisTick = false
38+
protected set
3839

3940
/**
4041
* The currently active request.
@@ -47,8 +48,6 @@ abstract class RequestHandler<R : Request> {
4748
}
4849
}
4950

50-
fun activeThisTick() = activeThisTick
51-
5251
/**
5352
* Registers a new request with the given configuration.
5453
*

common/src/main/kotlin/com/lambda/interaction/request/placing/PlaceManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ object PlaceManager : RequestHandler<PlaceRequest>(), PositionBlocking {
101101
}
102102

103103
currentRequest?.let request@ { request ->
104-
if (BreakManager.activeThisTick()) return@request
104+
if (BreakManager.activeThisTick) return@request
105105

106106
pendingPlacements.setMaxSize(request.buildConfig.placeSettings.maxPendingPlacements)
107107
pendingPlacements.setDecayTime(request.buildConfig.interactionTimeout * 50L)

0 commit comments

Comments
 (0)