From 297eb40ee4474c113d4be6c19ecbd3c7a0f4a02a Mon Sep 17 00:00:00 2001 From: Emmanuel Lampe Date: Mon, 27 Jun 2022 14:56:50 +0200 Subject: [PATCH] fixed issue with deprecated config method --- .../de/rexlmanu/viaversionaddon/platform/AddonConfig.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/rexlmanu/viaversionaddon/platform/AddonConfig.java b/src/main/java/de/rexlmanu/viaversionaddon/platform/AddonConfig.java index d4e45be..3a8cb31 100644 --- a/src/main/java/de/rexlmanu/viaversionaddon/platform/AddonConfig.java +++ b/src/main/java/de/rexlmanu/viaversionaddon/platform/AddonConfig.java @@ -1,9 +1,9 @@ package de.rexlmanu.viaversionaddon.platform; +import com.viaversion.viaversion.api.protocol.version.BlockedProtocolVersions; import com.viaversion.viaversion.configuration.AbstractViaConfig; import com.viaversion.viaversion.libs.fastutil.ints.IntOpenHashSet; -import com.viaversion.viaversion.libs.fastutil.ints.IntSet; - +import com.viaversion.viaversion.protocol.BlockedProtocolVersionsImpl; import java.io.File; import java.net.URL; import java.util.Arrays; @@ -33,8 +33,8 @@ protected void handleConfig(Map map) { } @Override - public IntSet getBlockedProtocols() { - return new IntOpenHashSet(); + public BlockedProtocolVersions blockedProtocolVersions() { + return new BlockedProtocolVersionsImpl(new IntOpenHashSet(), -1, -1); } @Override