Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
fixed issue with deprecated config method
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed Jun 27, 2022
1 parent 4c9d1d2 commit 297eb40
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -33,8 +33,8 @@ protected void handleConfig(Map<String, Object> map) {
}

@Override
public IntSet getBlockedProtocols() {
return new IntOpenHashSet();
public BlockedProtocolVersions blockedProtocolVersions() {
return new BlockedProtocolVersionsImpl(new IntOpenHashSet(), -1, -1);
}

@Override
Expand Down

0 comments on commit 297eb40

Please sign in to comment.