File tree Expand file tree Collapse file tree
src/main/java/net/wurstclient/hacks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,19 +227,22 @@ public String getRenderName()
227227 sb .append (" [" ).append (serverType .getSelected ().toString ());
228228
229229 double base = height .getValue ();
230+ boolean fabric = serverType .getSelected () == ServerType .FABRIC ;
231+
232+ if (fabric )
233+ return sb .append (" - " ).append (String .format ("%.1f" , base ))
234+ .append ("]" ).toString ();
235+
230236 if (!totemBypass .isChecked ())
231237 return sb .append (" " ).append (String .format ("%.0f" , base ))
232238 .append ("]" ).toString ();
233239
234240 double inc = heightIncrease .getValue ();
235241 int count = attackCount .getValueI ();
236- boolean fabric = serverType .getSelected () == ServerType .FABRIC ;
237242
238243 for (int i = 0 ; i < count ; i ++)
239244 {
240245 double h = base + i * inc ;
241- if (fabric )
242- h = Math .min (h , 22.3 );
243246 sb .append (i == 0 ? " " : "\u2192 " ).append (String .format ("%.0f" , h ));
244247 }
245248
@@ -871,6 +874,10 @@ private void onServerTypeChanged()
871874 autoOptimize .setVisibleInGui (paper );
872875 heightIncrease .setVisibleInGui (paper );
873876 attackCount .setVisibleInGui (paper );
877+
878+ if (!paper )
879+ totemBypass .setChecked (false );
880+
874881 if (WURST .getGuiIfInitialized () != null )
875882 WURST .getGuiIfInitialized ().requestRefresh ();
876883
You can’t perform that action at this time.
0 commit comments