From 327123a9be7423c859771df1def42d5f8fa39a82 Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Thu, 27 Jun 2024 14:21:41 +0200 Subject: [PATCH] Update unsupported options in FabricViaConfig Closes https://github.com/ViaVersion/ViaFabric/issues/138 --- .../fabric/common/platform/FabricViaConfig.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/viaversion/fabric/common/platform/FabricViaConfig.java b/src/main/java/com/viaversion/fabric/common/platform/FabricViaConfig.java index f6bb4e7..dceb056 100644 --- a/src/main/java/com/viaversion/fabric/common/platform/FabricViaConfig.java +++ b/src/main/java/com/viaversion/fabric/common/platform/FabricViaConfig.java @@ -20,29 +20,24 @@ package com.viaversion.fabric.common.platform; import com.viaversion.viaversion.configuration.AbstractViaConfig; import java.io.File; -import java.net.URL; -import java.util.Arrays; +import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.logging.Logger; public class FabricViaConfig extends AbstractViaConfig { - // Based on Sponge ViaVersion - private static final List UNSUPPORTED = Arrays.asList("anti-xray-patch", "quick-move-action-fix", - "nms-player-ticking", "velocity-ping-interval", "velocity-ping-save", "velocity-servers", - "blockconnection-method", "change-1_9-hitbox", "change-1_14-hitbox"); + + protected final List UNSUPPORTED = new ArrayList<>(); public FabricViaConfig(File configFile, Logger logger) { super(configFile, logger); + UNSUPPORTED.addAll(BUKKIT_ONLY_OPTIONS); + UNSUPPORTED.addAll(VELOCITY_ONLY_OPTIONS); + // Load config reload(); } - @Override - public URL getDefaultConfigURL() { - return getClass().getClassLoader().getResource("assets/viaversion/config.yml"); - } - @Override protected void handleConfig(Map config) { // Nothing Currently