Skip to content

Commit

Permalink
fix(shulker-proxy-directory): name of the default target
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed Mar 12, 2022
1 parent 8d4de7a commit 4470140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/minecraftcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (r *MinecraftClusterReconciler) Reconcile(ctx context.Context, req ctrl.Req
for _, server := range serverList.Items {
if meta.IsStatusConditionTrue(server.Status.Conditions, string(shulkermciov1alpha1.ServerReadyCondition)) {
tags := []string{}
if server.Spec.Tags == nil {
if server.Spec.Tags != nil {
tags = server.Spec.Tags
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ServerConnectListener(ShulkerProxyDirectory plugin) {

@EventHandler(priority = EventPriority.LOWEST)
public void onServerConnect(ServerConnectEvent event) {
if (event.getTarget().getName().equals("lobby")) {
if (!event.getTarget().getName().equals("lobby")) {
return;
}

Expand Down

0 comments on commit 4470140

Please sign in to comment.