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