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 de268499c..92f3307d8 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.removePermanentModifier(MODIFIER_ID) + reach.removeModifier(MODIFIER_ID) reach.addPermanentModifier(AttributeModifier(MODIFIER_ID, type.displayName.toString(), level + 1.0, AttributeModifier.Operation.ADDITION)) } @@ -25,7 +25,7 @@ class StepAssistFeature(android: MatteryPlayerCapability) : AndroidSwitchableFea if (!ForgeMod.STEP_HEIGHT_ADDITION.isPresent) return - ply.getAttribute(ForgeMod.STEP_HEIGHT_ADDITION.get())?.removePermanentModifier(MODIFIER_ID) + ply.getAttribute(ForgeMod.STEP_HEIGHT_ADDITION.get())?.removeModifier(MODIFIER_ID) } private var isSteppingCarefully = false