Skip to content

Commit cb88c39

Browse files
committed
Fix HighLatencyAdjust is always enabled
1 parent b26d3b0 commit cb88c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bukkit/src/main/kotlin/io/github/rothes/esu/bukkit/module/networkthrottle/HighLatencyAdjust.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import io.github.rothes.esu.core.configuration.meta.Comment
2020
import io.github.rothes.esu.core.coroutine.AsyncScope
2121
import io.github.rothes.esu.core.module.CommonFeature
2222
import io.github.rothes.esu.core.module.Feature
23+
import io.github.rothes.esu.core.module.configuration.BaseFeatureConfiguration
2324
import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap
2425
import kotlinx.coroutines.Job
2526
import 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

Comments
 (0)