Delete unused config option and add missing documentation (#3500)

This commit is contained in:
EnZaXD 2023-10-24 01:56:29 +02:00 committed by GitHub
parent a60342359b
commit 7cf008bb62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 17 deletions

View File

@ -450,9 +450,17 @@ public interface ViaVersionConfig extends Config {
*/
WorldIdentifiers get1_16WorldNamesMap();
/**
* Caches light until chunks are unloaded to allow subsequent chunk update packets as opposed to instantly uncaching when the first chunk data is sent.
*
* @return true if enabled
*/
boolean cache1_17Light();
@Nullable String chatTypeFormat(String translationKey);
/**
* Force-update 1.19.4+ player's inventory when they try to swap armor in a pre-occupied slot.
*
* @return true if enabled
*/
boolean isArmorToggleFix();
}

View File

@ -89,7 +89,6 @@ public abstract class AbstractViaConfig extends Config implements ViaVersionConf
private JsonElement resourcePack1_17PromptMessage;
private WorldIdentifiers map1_16WorldNames;
private boolean cache1_17Light;
private Map<String, String> chatTypeFormats;
protected AbstractViaConfig(final File configFile) {
super(configFile);
@ -158,7 +157,6 @@ public abstract class AbstractViaConfig extends Config implements ViaVersionConf
worlds.getOrDefault("nether", WorldIdentifiers.NETHER_DEFAULT),
worlds.getOrDefault("end", WorldIdentifiers.END_DEFAULT));
cache1_17Light = getBoolean("cache-1_17-light", true);
chatTypeFormats = get("chat-types-1_19", Map.class, new HashMap<String, String>());
}
private BlockedProtocolVersions loadBlockedProtocolVersions() {
@ -528,11 +526,6 @@ public abstract class AbstractViaConfig extends Config implements ViaVersionConf
return cache1_17Light;
}
@Override
public @Nullable String chatTypeFormat(final String translationKey) {
return chatTypeFormats.get(translationKey);
}
@Override
public boolean isArmorToggleFix() {
return false;

View File

@ -167,14 +167,6 @@ resource-pack-1_17-prompt: ''
# Only disable this if you know what you are doing.
cache-1_17-light: true
#
# 1.19 chat type formats used for 1.19.1+ clients.
chat-types-1_19:
chat.type.text: "<%s> %s"
chat.type.announcement: "[%s] %s"
commands.message.display.incoming: "%s whispers to you: %s"
chat.type.team.text: "%s <%s> %s"
chat.type.emote: "* %s %s"
#
# Force-update 1.19.4+ player's inventory when they try to swap armor in a pre-occupied slot.
armor-toggle-fix: true
#