Fix platform loading (#604)

This commit is contained in:
EnZaXD 2023-10-08 11:33:00 +02:00 committed by GitHub
parent 9e883faa78
commit aa1f38674d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;