mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-12-21 16:17:37 +01:00
Update unsupported options in FabricViaConfig
Closes https://github.com/ViaVersion/ViaFabric/issues/138
This commit is contained in:
parent
67d33c6985
commit
327123a9be
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user