--- a/com/mojang/realmsclient/RealmsMainScreen.java
+++ b/com/mojang/realmsclient/RealmsMainScreen.java
@@ -246,8 +246,7 @@
 
             this.layout = this.createLayout(p_294474_);
             this.activeLayoutState = p_294474_;
-            this.layout.visitWidgets(p_321334_ -> {
-            });
+            this.layout.visitWidgets(this::addRenderableWidget);
             this.repositionElements();
         }
     }
@@ -558,8 +557,7 @@
 
     @Nullable
     private RealmsServer getSelectedServer() {
-        AbstractSelectionList.Entry abstractselectionlist$entry = this.realmSelectionList.getSelected();
-        return abstractselectionlist$entry instanceof RealmsMainScreen.ServerEntry realmsmainscreen$serverentry
+        return this.realmSelectionList.getSelected() instanceof RealmsMainScreen.ServerEntry realmsmainscreen$serverentry
             ? realmsmainscreen$serverentry.getServer()
             : null;
     }
