Skip to content

Commit d7a1715

Browse files
committed
linear renders accounting for fudge factor
1 parent f492c5a commit d7a1715

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/interaction/request/breaking

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/interaction/request/breaking/BreakManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ object BreakManager : RequestHandler<BreakRequest>(
232232
val progress = (info.breakingTicks * breakDelta).let {
233233
if (info.isPrimary) it * (2 - info.breakConfig.breakThreshold)
234234
else it
235-
}.toDouble()
235+
}.toDouble() * (1 - (breakDelta * config.fudgeFactor))
236236
val state = info.context.cachedState
237237
val boxes = state.getOutlineShape(world, info.context.blockPos).boundingBoxes.map {
238238
it.offset(info.context.blockPos)

0 commit comments

Comments
 (0)