Change some string & remove unused config item
This commit is contained in:
@@ -169,8 +169,9 @@ public class Config
|
||||
"\n" +
|
||||
"Note for servers:\n" +
|
||||
"This setting does not prevent players from generating farther out.\n" +
|
||||
"If you want to limit performance impact, change rate/concurrency (RC) limits\n" +
|
||||
"and thread count/runtime ratio settings instead.")
|
||||
"If you want to limit performance impact, change rate limits\n" +
|
||||
"and thread count/runtime ratio settings instead.\n" +
|
||||
"It also does not affect the visuals on clients.")
|
||||
.setPerformance(EConfigEntryPerformance.HIGH)
|
||||
.build();
|
||||
|
||||
@@ -979,17 +980,6 @@ public class Config
|
||||
.build();
|
||||
|
||||
|
||||
public static ConfigEntry<Integer> rateLimitHitTolerance = new ConfigEntry.Builder<Integer>()
|
||||
.setServersideShortName("rateLimitHitTolerance")
|
||||
.setAppearance(EConfigEntryAppearance.ONLY_IN_FILE)
|
||||
.setMinDefaultMax(1, 10, 100)
|
||||
.comment(""
|
||||
+ "The amount of rate/concurrency limit hits a client can make in one second before being disconnected by the server.\n"
|
||||
+ "This setting only applies to the server and has no effect on clients."
|
||||
+ "")
|
||||
.build();
|
||||
|
||||
|
||||
|
||||
public static ConfigEntry<Boolean> sendLevelKeys = new ConfigEntry.Builder<Boolean>()
|
||||
.setServersideShortName("sendLevelKeys")
|
||||
|
||||
+2
-2
@@ -91,14 +91,14 @@ public class ServerPlayerState
|
||||
public final SupplierBasedRateAndConcurrencyLimiter<FullDataSourceRequestMessage> generationRequestRateLimiter = new SupplierBasedRateAndConcurrencyLimiter<>(
|
||||
() -> ServerNetworking.generationRequestRateLimit.get(),
|
||||
msg -> {
|
||||
msg.sendResponse(new RateLimitedException("Full data request rate/concurrency limit: " + ServerPlayerState.this.config.getGenerationRequestRateLimit()));
|
||||
msg.sendResponse(new RateLimitedException("Full data request rate limit: " + ServerPlayerState.this.config.getGenerationRequestRateLimit()));
|
||||
}
|
||||
);
|
||||
|
||||
public final SupplierBasedRateAndConcurrencyLimiter<FullDataSourceRequestMessage> syncOnLoginRateLimiter = new SupplierBasedRateAndConcurrencyLimiter<>(
|
||||
() -> ServerNetworking.syncOnLoginRateLimit.get(),
|
||||
msg -> {
|
||||
msg.sendResponse(new RateLimitedException("Data sync rate/concurrency limit: " + ServerPlayerState.this.config.getSyncOnLoginRateLimit()));
|
||||
msg.sendResponse(new RateLimitedException("Sync on login rate limit: " + ServerPlayerState.this.config.getSyncOnLoginRateLimit()));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user