2222import meteordevelopment .meteorclient .settings .Setting ;
2323import meteordevelopment .meteorclient .settings .SettingGroup ;
2424import meteordevelopment .meteorclient .systems .modules .Module ;
25+ import meteordevelopment .meteorclient .utils .player .ChatUtils ;
2526import meteordevelopment .meteorclient .utils .player .PlayerUtils ;
2627import meteordevelopment .meteorclient .utils .render .NametagUtils ;
2728import meteordevelopment .meteorclient .utils .render .WireframeEntityRenderer ;
2829import meteordevelopment .meteorclient .utils .render .color .SettingColor ;
2930import meteordevelopment .meteorclient .utils .world .Dimension ;
3031import meteordevelopment .orbit .EventHandler ;
32+ import net .minecraft .text .Text ;
3133import net .minecraft .client .network .PlayerListEntry ;
3234import net .minecraft .entity .Entity ;
3335import net .minecraft .entity .EquipmentSlot ;
@@ -180,6 +182,9 @@ private void onTick(TickEvent.Post event) {
180182 return ;
181183 }
182184 }
185+ if (notification .get ()) {
186+ ChatUtils .sendMsg (Text .literal (player .getName ().getString () + " Logged out!" ));
187+ }
183188 add (new Entry (player ));
184189 }
185190 }
@@ -236,13 +241,13 @@ private void onRender2D(Render2DEvent event) {
236241
237242 private class Entry {
238243 public final double x , y , z ;
239- public final double xWidth , zWidth , halfWidth , height ;
244+ public final double halfWidth , height ;
240245
241246 public final TimerUtils passed = new TimerUtils ();
242247
243248 public final UUID uuid ;
244249 public final String name ;
245- public final int health , maxHealth ;
250+ public final int health ;
246251 public final String healthText ;
247252 PlayerEntity entity ;
248253
@@ -254,16 +259,13 @@ public Entry(PlayerEntity entity) {
254259 y = entity .getY ();
255260 z = entity .getZ () - halfWidth ;
256261
257- xWidth = entity .getBoundingBox ().getLengthX ();
258- zWidth = entity .getBoundingBox ().getLengthZ ();
259262 height = entity .getBoundingBox ().getLengthY ();
260263
261264 this .entity = entity ;
262265
263266 uuid = entity .getUuid ();
264267 name = entity .getName ().getString ();
265268 health = Math .round (entity .getHealth () + entity .getAbsorptionAmount ());
266- maxHealth = Math .round (entity .getMaxHealth () + entity .getAbsorptionAmount ());
267269
268270 healthText = " " + health ;
269271 }
0 commit comments