mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Delete unused config option and add missing documentation (#3500)
This commit is contained in:
parent
a60342359b
commit
7cf008bb62
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user