Skip to content

Commit

Permalink
fix(fabric): Add missing @Singleton to MinecraftServerHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Apr 14, 2023
1 parent 2698dae commit 3dbec83
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package net.draycia.carbon.fabric;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import java.util.Objects;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.minecraft.server.MinecraftServer;
Expand All @@ -28,6 +29,7 @@
import org.checkerframework.framework.qual.DefaultQualifier;

@DefaultQualifier(NonNull.class)
@Singleton
public final class MinecraftServerHolder {

private @Nullable MinecraftServer server;
Expand Down

0 comments on commit 3dbec83

Please sign in to comment.