Update unsupported options in FabricViaConfig

Closes https://github.com/ViaVersion/ViaFabric/issues/138
This commit is contained in:
FlorianMichael 2024-06-27 14:21:41 +02:00
parent 67d33c6985
commit 327123a9be
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -20,29 +20,24 @@ package com.viaversion.fabric.common.platform;
import com.viaversion.viaversion.configuration.AbstractViaConfig; import com.viaversion.viaversion.configuration.AbstractViaConfig;
import java.io.File; import java.io.File;
import java.net.URL; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.logging.Logger; import java.util.logging.Logger;
public class FabricViaConfig extends AbstractViaConfig { public class FabricViaConfig extends AbstractViaConfig {
// Based on Sponge ViaVersion
private static final List<String> UNSUPPORTED = Arrays.asList("anti-xray-patch", "quick-move-action-fix", protected final List<String> UNSUPPORTED = new ArrayList<>();
"nms-player-ticking", "velocity-ping-interval", "velocity-ping-save", "velocity-servers",
"blockconnection-method", "change-1_9-hitbox", "change-1_14-hitbox");
public FabricViaConfig(File configFile, Logger logger) { public FabricViaConfig(File configFile, Logger logger) {
super(configFile, logger); super(configFile, logger);
UNSUPPORTED.addAll(BUKKIT_ONLY_OPTIONS);
UNSUPPORTED.addAll(VELOCITY_ONLY_OPTIONS);
// Load config // Load config
reload(); reload();
} }
@Override
public URL getDefaultConfigURL() {
return getClass().getClassLoader().getResource("assets/viaversion/config.yml");
}
@Override @Override
protected void handleConfig(Map<String, Object> config) { protected void handleConfig(Map<String, Object> config) {
// Nothing Currently // Nothing Currently