Skip to content

Commit

Permalink
fix(game-tracking): don't initialise if kafka isnt present
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakShearman committed Mar 3, 2024
1 parent c482da6 commit 01b151a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ static final class BuilderImpl implements Builder, Builder.EndStep {
gameManager.addGameStatusListener(new AgonesGameStatusListener(config, kubernetesModule.getSdk()));
}

GameTracker gameTracker = new GameTracker(messaging, config);
gameManager.addGameStatusListener(gameTracker);

if (messaging != null) {
GameTracker gameTracker = new GameTracker(messaging, config);
gameManager.addGameStatusListener(gameTracker);

new AgonesGameListener(gameManager, config, messaging);
}

MinecraftServer.getCommandManager().register(new GameSdkCommand(gameManager));

return new MinestomGameServerImpl(gameManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
Expand Down

0 comments on commit 01b151a

Please sign in to comment.