@@ -20,6 +20,7 @@ import io.github.rothes.esu.core.configuration.meta.Comment
2020import io.github.rothes.esu.core.coroutine.AsyncScope
2121import io.github.rothes.esu.core.module.CommonFeature
2222import io.github.rothes.esu.core.module.Feature
23+ import io.github.rothes.esu.core.module.configuration.BaseFeatureConfiguration
2324import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap
2425import kotlinx.coroutines.Job
2526import kotlinx.coroutines.delay
@@ -121,7 +122,6 @@ object HighLatencyAdjust: CommonFeature<HighLatencyAdjust.FeatureConfig, HighLat
121122 So they won't affect average quality of all players.
122123 """ )
123124 data class FeatureConfig (
124- val enabled : Boolean = false ,
125125 @Comment(" Trigger a adjust when player's ping is greater than or equal this." )
126126 val latencyThreshold : Int = 150 ,
127127 @Comment(" The high ping must keep for the duration to trigger a adjust finally." )
@@ -131,7 +131,7 @@ object HighLatencyAdjust: CommonFeature<HighLatencyAdjust.FeatureConfig, HighLat
131131 " If false, any new settings could reset the view distance for the player." )
132132 val newViewDistanceToReset : Boolean = false ,
133133 val minViewDistance : Int = 5 ,
134- ): ConfigurationPart
134+ ): BaseFeatureConfiguration()
135135
136136 data class FeatureLang (
137137 val adjustedWarning : MessageData = ("<ec><b>Warning : </b><pc>Your network latency seems to be high. \n" +
0 commit comments