--- a/net/minecraft/client/gui/screens/achievement/StatsScreen.java
+++ b/net/minecraft/client/gui/screens/achievement/StatsScreen.java
@@ -98,8 +98,7 @@
         }
 
         this.layout = headerandfooterlayout;
-        this.layout.visitWidgets(p_329726_ -> {
-        });
+        this.layout.visitWidgets(this::addRenderableWidget);
         this.repositionElements();
     }
 
@@ -457,11 +456,11 @@
                     i = 0;
                     j = 0;
                 } else if (ItemStatisticsList.this.blockColumns.contains(ItemStatisticsList.this.sortColumn)) {
-                    StatType<Block> stattype = ItemStatisticsList.this.sortColumn;
+                    StatType<Block> stattype = (StatType<Block>)ItemStatisticsList.this.sortColumn;
                     i = item instanceof BlockItem ? StatsScreen.this.stats.getValue(stattype, ((BlockItem)item).getBlock()) : -1;
                     j = item1 instanceof BlockItem ? StatsScreen.this.stats.getValue(stattype, ((BlockItem)item1).getBlock()) : -1;
                 } else {
-                    StatType<Item> stattype1 = ItemStatisticsList.this.sortColumn;
+                    StatType<Item> stattype1 = (StatType<Item>)ItemStatisticsList.this.sortColumn;
                     i = StatsScreen.this.stats.getValue(stattype1, item);
                     j = StatsScreen.this.stats.getValue(stattype1, item1);
                 }
