Skip to content

Commit 8c814c0

Browse files
committed
warn and check before logging
1 parent f2426a7 commit 8c814c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/com/lambda/interaction/managers/interacting/InteractedBlockHandler.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import com.lambda.interaction.managers.PostActionHandler
2626
import com.lambda.interaction.managers.interacting.InteractManager.placeSound
2727
import com.lambda.threading.runSafe
2828
import com.lambda.util.BlockUtils.matches
29-
import com.lambda.util.Communication.info
3029
import com.lambda.util.Communication.warn
3130
import com.lambda.util.collections.LimitedDecayQueue
3231

@@ -35,7 +34,7 @@ object InteractedBlockHandler : PostActionHandler<InteractInfo>() {
3534
DEFAULT.buildConfig.maxPendingActions,
3635
DEFAULT.buildConfig.actionTimeout * 50L
3736
) {
38-
info("${it::class.simpleName} at ${it.context.blockPos.toShortString()} timed out")
37+
if (managerDebugLogs) warn("${it::class.simpleName} at ${it.context.blockPos.toShortString()} timed out")
3938
if (it.interactConfig.interactConfirmationMode != InteractConfig.InteractConfirmationMode.AwaitThenPlace) {
4039
runSafe {
4140
world.setBlockState(it.context.blockPos, it.context.cachedState)

0 commit comments

Comments
 (0)