Make step assist add only half a block to step height

This commit is contained in:
DBotThePony 2022-10-05 21:02:13 +07:00
parent 2216391076
commit 92a96bd38f
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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() {