From 92a96bd38f97cae66f3f4e83a0c54580f64a501a Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 5 Oct 2022 21:02:13 +0700 Subject: [PATCH] Make step assist add only half a block to step height --- .../ru/dbotthepony/mc/otm/android/feature/StepAssistFeature.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/StepAssistFeature.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/StepAssistFeature.kt index 790c4c4ca..321d70369 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/StepAssistFeature.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/StepAssistFeature.kt @@ -17,7 +17,7 @@ class StepAssistFeature(android: MatteryPlayerCapability) : AndroidSwitchableFea val reach = ply.getAttribute(ForgeMod.STEP_HEIGHT_ADDITION.get()) ?: return reach.removeModifier(MODIFIER_ID) - reach.addPermanentModifier(AttributeModifier(MODIFIER_ID, type.displayName.toString(), level + 1.0, AttributeModifier.Operation.ADDITION)) + reach.addPermanentModifier(AttributeModifier(MODIFIER_ID, type.displayName.toString(), (level + 1) * 0.5, AttributeModifier.Operation.ADDITION)) } override fun removeModifiers() {