Skip to content

Commit 90f08a0

Browse files
committed
Update ProtocolBase.java
1 parent 2784abd commit 90f08a0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/net/aspw/viaforgeplus/ProtocolBase.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ public static void init(final VFPlatform platform) {
3434
return;
3535
}
3636

37-
final ProtocolVersion version = ProtocolVersion.getProtocol(platform.getGameVersion());
38-
39-
if (version == ProtocolVersion.unknown)
40-
throw new IllegalArgumentException("Unknown Protocol Found (" + platform.getGameVersion() + ")");
41-
4237
manager = new ProtocolBase();
4338

4439
ViaLoader.init(new ViaVersionPlatformImpl(null), new ProtocolVLLoader(platform), new ProtocolVLInjector(), null, ViaBackwardsPlatformImpl::new, ViaRewindPlatformImpl::new, ViaLegacyPlatformImpl::new, null);
@@ -48,8 +43,6 @@ public static void init(final VFPlatform platform) {
4843
versions.removeIf(i -> i == ProtocolVersion.unknown || i.olderThan(ProtocolVersion.v1_7_2));
4944

5045
ProtocolFixer.doFix();
51-
52-
throw new IllegalArgumentException("ViaForgePlus Injected");
5346
}
5447

5548
public void inject(final Channel channel, final VFNetworkManager networkManager) {

0 commit comments

Comments
 (0)