From aa1f38674d9038f8ff852aac7ed3dfe8c0631642 Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Sun, 8 Oct 2023 11:33:00 +0200 Subject: [PATCH] Fix platform loading (#604) --- .../src/main/java/com/viaversion/viabackwards/ViaBackwards.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/ViaBackwards.java b/common/src/main/java/com/viaversion/viabackwards/ViaBackwards.java index 39b8e7f5..e5f22781 100644 --- a/common/src/main/java/com/viaversion/viabackwards/ViaBackwards.java +++ b/common/src/main/java/com/viaversion/viabackwards/ViaBackwards.java @@ -28,7 +28,7 @@ public final class ViaBackwards { private static ViaBackwardsConfig config; public static void init(ViaBackwardsPlatform platform, ViaBackwardsConfig config) { - Preconditions.checkArgument(ViaBackwards.platform != null, "ViaBackwards is already initialized"); + Preconditions.checkArgument(ViaBackwards.platform == null, "ViaBackwards is already initialized"); ViaBackwards.platform = platform; ViaBackwards.config = config;