1616import net .modfest .scatteredshards .api .ShardLibrary ;
1717import net .modfest .scatteredshards .api .shard .Shard ;
1818import net .modfest .scatteredshards .api .shard .ShardType ;
19- import net .modfest .scatteredshards .client .ScatteredShardsClient ;
2019import net .modfest .scatteredshards .client .screen .widget .WLeftRightPanel ;
2120import net .modfest .scatteredshards .client .screen .widget .WShardPanel ;
2221import net .modfest .scatteredshards .client .screen .widget .WShardSetPanel ;
@@ -58,7 +57,6 @@ public ShardTabletGuiDescription(ShardCollection collection, ShardLibrary librar
5857 int panelHeight = selectorPanel .getHeight ();
5958
6059 WScaledLabel progressVisited = new WScaledLabel (() -> {
61- if (!ScatteredShardsClient .hasShiftDown ()) return Text .empty ();
6260 int visitedSets = 0 ;
6361 for (Collection <Identifier > set : library .shardSets ().asMap ().values ()) {
6462 for (Identifier identifier : set ) {
@@ -74,10 +72,7 @@ public ShardTabletGuiDescription(ShardCollection collection, ShardLibrary librar
7472 progressVisited .setSize (80 , 10 );
7573 progressVisited .setLocation (13 , panelHeight - 20 );
7674
77- WScaledLabel progressTotal = new WScaledLabel (() -> {
78- if (!ScatteredShardsClient .hasShiftDown ()) return Text .empty ();
79- return Text .translatable ("gui.scattered_shards.tablet.label.progress.total" , "%.0f%%" .formatted (100 * collection .size () / (float ) library .shards ().size ()));
80- }, 1.0f ).setColor (Colors .LIGHT_GRAY );
75+ WScaledLabel progressTotal = new WScaledLabel (() -> Text .translatable ("gui.scattered_shards.tablet.label.progress.total" , "%.0f%%" .formatted (100 * collection .size () / (float ) library .shards ().size ())), 1.0f ).setColor (Colors .LIGHT_GRAY );
8176 selectorPanel .add (progressTotal , 0 , 0 );
8277 progressTotal .setSize (80 , 10 );
8378 progressTotal .setLocation (selectorPanel .getWidth () - 72 , panelHeight - 20 );
@@ -123,7 +118,7 @@ public void addPainters() {
123118
124119 public static class Screen extends CottonClientScreen {
125120 public Screen (ShardCollection collection , ShardLibrary library ) {
126- super (new ShardTabletGuiDescription (collection , library ));
121+ super (Text . translatable ( "menu.scattered_shards.collection" ), new ShardTabletGuiDescription (collection , library ));
127122 }
128123
129124 @ Override
0 commit comments